Skip to content

Commit

Permalink
Merge pull request #490 from fabscale/dependabot/npm_and_yarn/ember-t…
Browse files Browse the repository at this point in the history
…emplate-lint-5.11.1

chore(deps-dev): bump ember-template-lint from 4.17.0 to 5.11.1
  • Loading branch information
fabclaudiu authored Jul 20, 2023
2 parents fc47096 + 063dd31 commit 54d4aa4
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 112 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"ember-resolver": "~9.0.1",
"ember-source": "~5.1.2",
"ember-source-channel-url": "~3.0.0",
"ember-template-lint": "~4.17.0",
"ember-template-lint": "~5.11.1",
"ember-try": "~2.0.0",
"eslint": "~8.44.0",
"fabscale-eslint-config": "~1.6.0",
Expand Down
10 changes: 7 additions & 3 deletions tests/integration/helpers/layout-css-var-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,23 @@ module('Integration | Helper | layout-css-var', function (hooks) {
setupRenderingTest(hooks);

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

assert.dom(this.element).hasText('');
});

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

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

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

assert.dom(this.element).hasText('--other-var: 100px');
});
Expand Down
Loading

0 comments on commit 54d4aa4

Please sign in to comment.