Skip to content

Commit

Permalink
feat(nova): more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vogloblinsky committed Feb 12, 2019
1 parent 63d6fa9 commit 983cdc8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/nova/tests/nova.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,28 @@ describe('<nova-badge>', () => {

assert.equal(scoreElement.textContent, '1');
});

it('should render others values - 2', async () => {
const el = await fixture('<nova-badge score="2"></nova-badge>');

const scoreElement = el.shadowRoot.querySelector('.score');

assert.equal(scoreElement.textContent, '2');
});

it('should render others values - 3', async () => {
const el = await fixture('<nova-badge score="3"></nova-badge>');

const scoreElement = el.shadowRoot.querySelector('.score');

assert.equal(scoreElement.textContent, '3');
});

it('should render others values - 4', async () => {
const el = await fixture('<nova-badge score="4"></nova-badge>');

const scoreElement = el.shadowRoot.querySelector('.score');

assert.equal(scoreElement.textContent, '4');
});
});

0 comments on commit 983cdc8

Please sign in to comment.