Skip to content

Commit

Permalink
fix(icon): fixed failing tests (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
shibulijack-fd authored Jan 13, 2020
1 parent 42edb84 commit 4b43c4a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ module('Integration | Component | nucleus-icon', function(hooks) {
});

test('it has correct markup', async function(assert) {
await render(hbs`{{nucleus-icon icon="nucleus-cross"}}`);
await render(hbs`{{nucleus-icon name="nucleus-cross"}}`);

assert.dom('svg').hasClass('nucleus-icon', 'icon has nucleus-icon class');
});

test('it has correct size', async function(assert) {
await render(hbs`{{nucleus-icon icon="nucleus-cross" size="mini"}}`);
await render(hbs`{{nucleus-icon name="nucleus-cross" size="mini"}}`);

assert.dom('svg').hasClass('nucleus-icon--mini', 'icon has correct size class');
});

test('it passes a11y tests', async function(assert) {
await render(hbs`{{nucleus-icon icon="nucleus-cross"}}`);
await render(hbs`{{nucleus-icon name="nucleus-cross"}}`);

return a11yAudit(this.element).then(() => {
assert.ok(true, 'no a11y errors found!');
Expand Down

0 comments on commit 4b43c4a

Please sign in to comment.