Skip to content

Commit 69009fb

Browse files
authored
Merge pull request #126 from jbailey4/es-note-angle-bracket
use angle-bracket syntax for es-note component
2 parents fd8d43c + cfe55fa commit 69009fb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/dummy/app/templates/docs/components/es-note.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
{{#docs-demo as |demo|}}
44
{{#demo.example name='es-note'}}
5-
{{#es-note}}
5+
<EsNote>
66
This is a note
7-
{{/es-note}}
7+
</EsNote>
88
{{/demo.example}}
99
{{demo.snippet 'es-note'}}
1010
{{/docs-demo}}
1111

1212
{{#docs-demo as |demo|}}
1313
{{#demo.example name='es-note-blank'}}
14-
{{es-note}}
14+
<EsNote />
1515
{{/demo.example}}
1616
{{demo.snippet 'es-note-blank'}}
1717
{{/docs-demo}}

tests/integration/components/es-note-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module('Integration | Component | es note', function(hooks){
1010
test('it renders', async function(assert) {
1111
const testHeading = 'Tomster says... Zoey says...';
1212

13-
await render(hbs`{{es-note}}`);
13+
await render(hbs`<EsNote />`);
1414

1515
assert.ok(
1616
testHeading.includes(find('.cta-note-heading').textContent.trim()),
@@ -19,9 +19,9 @@ module('Integration | Component | es note', function(hooks){
1919
assert.dom('.cta-note-message').hasText('Hello!!! No message provided.');
2020

2121
await render(hbs`
22-
{{#es-note}}
22+
<EsNote>
2323
template block text
24-
{{/es-note}}
24+
</EsNote>
2525
`);
2626

2727
assert.ok(
@@ -46,7 +46,7 @@ module('Integration | Component | es note', function(hooks){
4646
for (let i = 0; i < 10; i++) {
4747
let name;
4848

49-
await render(hbs`{{es-note mascots=mascots}}`);
49+
await render(hbs`<EsNote @mascots={{mascots}} />`);
5050
name = find('.cta-note-heading').textContent.trim().split(' ')[0];
5151

5252
renderedNames.push(name);

0 commit comments

Comments
 (0)