Skip to content

Commit 55f2bbc

Browse files
committed
Reverted angle bracket notation from es-ulist tests
1 parent 4dbdb3d commit 55f2bbc

File tree

1 file changed

+9
-55
lines changed

1 file changed

+9
-55
lines changed

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

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ module('Integration | Component | es ulist', function(hooks){
88

99
test('it renders with border', async function(assert) {
1010

11-
await render(hbs`
12-
<EsUlist
13-
@hasBorder={{true}}
14-
/>`
15-
);
11+
await render(hbs`{{es-ulist hasBorder=true}}`);
1612

1713
assert.dom('.es-ulist').hasClass('bordered');
1814

@@ -22,12 +18,7 @@ module('Integration | Component | es ulist', function(hooks){
2218
test('it renders the title with correct id', async function(assert) {
2319
assert.expect(2);
2420

25-
await render(hbs`
26-
<EsUlist
27-
@elementId="mylist"
28-
@listTitle="My List Title"
29-
/>`
30-
);
21+
await render(hbs`{{es-ulist elementId="mylist" listTitle="My List Title"}}`);
3122

3223
assert.dom('#mylist').hasText('My List Title');
3324
assert.dom('.es-ulist').doesNotHaveClass('bordered');
@@ -36,14 +27,7 @@ module('Integration | Component | es ulist', function(hooks){
3627
test('it renders the title with sr-only class when isTitleVisible is true', async function(assert) {
3728
assert.expect(2);
3829

39-
await render(hbs`
40-
<EsUlist
41-
@isTitleVisible={{true}}
42-
@sr-only="srClass"
43-
@elementId="mylist"
44-
@listTitle="My List Title"
45-
/>`
46-
);
30+
await render(hbs`{{es-ulist isTitleVisible=true sr-only="srClass" elementId="mylist" listTitle="My List Title"}}`);
4731

4832
assert.dom('#list-mylist').hasClass('list-title');
4933
assert.dom('#list-mylist').hasClass('srClass');
@@ -52,14 +36,7 @@ module('Integration | Component | es ulist', function(hooks){
5236
test('it renders the title without sr-only class when isTitleVisible is false', async function(assert) {
5337
assert.expect(2);
5438

55-
await render(hbs`
56-
<EsUlist
57-
@isTitleVisible={{false}}
58-
@sr-only="srClass"
59-
@elementId="mylist"
60-
@listTitle="My List Title"
61-
/>`
62-
);
39+
await render(hbs`{{es-ulist isTitleVisible=false sr-only="srClass" elementId="mylist" listTitle="My List Title"}}`);
6340

6441
assert.dom('#list-mylist').hasClass('list-title');
6542
assert.dom('#list-mylist').doesNotHaveClass('srClass');
@@ -73,11 +50,7 @@ module('Integration | Component | es ulist', function(hooks){
7350
test('the list does not have unorderded items', async function(assert){
7451
assert.expect(1);
7552

76-
await render(hbs`
77-
<EsUlist
78-
@isUnorderedList={{false}}
79-
/>`
80-
);
53+
await render(hbs`{{es-ulist isUnorderedList=false}}`);
8154

8255
assert.dom('.es-ulist ul').doesNotExist();
8356
});
@@ -88,12 +61,7 @@ module('Integration | Component | es ulist', function(hooks){
8861
test('the id value of the list title matches the value in the aria-describedby property on the list element', async function(assert){
8962
assert.expect(2);
9063

91-
await render(hbs`
92-
<EsUlist
93-
@elementId='mylist'
94-
@isUnorderedList={{true}}
95-
/>`
96-
);
64+
await render(hbs`{{es-ulist elementId='mylist' isUnorderedList=true}}`);
9765

9866
assert.dom('.es-ulist ul').hasAttribute('aria-describedby', 'list-mylist');
9967
assert.dom('.list-title').hasAttribute('id', 'list-mylist');
@@ -103,11 +71,7 @@ module('Integration | Component | es ulist', function(hooks){
10371
test('the list does not have ordered items', async function(assert){
10472
assert.expect(1);
10573

106-
await render(hbs`
107-
<EsUlist
108-
@isUnorderedList={{false}}
109-
/>`
110-
);
74+
await render(hbs`{{es-ulist isUnorderedList=false}}`);
11175

11276
assert.dom('.es-ulist ol').doesNotExist();
11377
});
@@ -138,12 +102,7 @@ module('Integration | Component | es ulist', function(hooks){
138102
test('the list has correct aria label and classes', async function(assert){
139103
assert.expect(3);
140104

141-
await render(hbs`
142-
<EsUlist
143-
@elementId='mylist'
144-
@isUnorderedList={{true}}
145-
/>`
146-
);
105+
await render(hbs`{{es-ulist elementId='mylist' isUnorderedList=true}}`);
147106

148107
assert.dom('.es-ulist ul').hasAttribute('aria-labelledby', 'list-mylist');
149108
assert.dom('.es-ulist ul').hasClass('list');
@@ -154,12 +113,7 @@ module('Integration | Component | es ulist', function(hooks){
154113
test('the list is populated', async function(assert){
155114
assert.expect(14);
156115

157-
await render(hbs`
158-
<EsUlist
159-
@isUnorderedList={{true}}
160-
@listItems={{listItems}}
161-
/>`
162-
);
116+
await render(hbs`{{es-ulist isUnorderedList=true listItems=listItems}}`);
163117

164118
assert.dom('.es-ulist ul li').exists({count: 3});
165119
assert.dom('.es-ulist ul li:nth-child(1) img').hasAttribute('src', '/images/tomsters/columbus.png');

0 commit comments

Comments
 (0)