Skip to content

Commit

Permalink
Add test to check style attribute
Browse files Browse the repository at this point in the history
Confirm issue ember-polyfills#80
  • Loading branch information
ctjhoa committed Aug 3, 2019
1 parent c5dd2ec commit d1bf295
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration/components/angle-bracket-invocation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ module('Integration | Component | angle-bracket-invocation', function(hooks) {
assert.dom('[data-foo="bar"]').exists();
});

test('with style', async function(assert) {
this.owner.register('template:components/foo-bar', hbs``);

await render(hbs`<FooBar style="color: red" data-foo="bar" />`);

assert.dom('[data-foo="bar"]').hasAttribute('style');
});

test('attributes, arguments, and block', async function(assert) {
this.owner.register('template:components/foo-bar', hbs`<h2>{{title}}</h2><p>{{yield}}</p>`);

Expand Down

0 comments on commit d1bf295

Please sign in to comment.