Skip to content

Commit

Permalink
revert changes to test
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons committed Dec 8, 2023
1 parent 0861bbc commit 05589ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/external-link/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ describe('macro: external-link', () => {
expect($('.ons-external-link__new-window-description').text()).toBe('(custom opens in a new tab text)');
});

it('has `external link` icon', () => {
const faker = templateFaker();
const iconsSpy = faker.spy('icon');
faker.renderComponent('external-link', EXAMPLE_EXTERNAL_LINK);
expect(iconsSpy.occurrences[0].iconType).toBe('external-link');
it('has an "external-link" icon', async () => {
const $ = cheerio.load(renderComponent('external-link', EXAMPLE_EXTERNAL_LINK));

const $svg = $('.ons-external-link__icon svg');
expect($svg.length).toBe(1);
});
});

0 comments on commit 05589ee

Please sign in to comment.