Skip to content

Commit 063dd31

Browse files
committed
add no-curly.. lint rule
1 parent 98a6cb1 commit 063dd31

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/integration/helpers/layout-css-var-test.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@ module('Integration | Helper | layout-css-var', function (hooks) {
77
setupRenderingTest(hooks);
88

99
test('it works with empty hash', async function (assert) {
10-
await render(hbs`{{layout-css-var}}`);
10+
await render(hbs`{{!-- template-lint-disable --}} {{layout-css-var}}`);
1111

1212
assert.dom(this.element).hasText('');
1313
});
1414

1515
test('it works with values', async function (assert) {
16-
await render(hbs`{{layout-css-var my-var='1rem' other-var='100px'}}`);
16+
await render(
17+
hbs`{{!-- template-lint-disable --}} {{layout-css-var my-var='1rem' other-var='100px'}}`
18+
);
1719

1820
assert.dom(this.element).hasText('--my-var: 1rem; --other-var: 100px');
1921
});
2022

2123
test('it ignores empty values', async function (assert) {
22-
await render(hbs`{{layout-css-var my-var=null other-var='100px'}}`);
24+
await render(
25+
hbs`{{!-- template-lint-disable --}} {{layout-css-var my-var=null other-var='100px'}}`
26+
);
2327

2428
assert.dom(this.element).hasText('--other-var: 100px');
2529
});

0 commit comments

Comments
 (0)