Skip to content

Commit

Permalink
fixed macro tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SriHV committed Jan 6, 2025
1 parent ba0682c commit 69e3aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/hero/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ describe('macro: hero', () => {
expect(content).toBe('Topic Text');
});

it('outputs the official statistics badge when badge is set to true', () => {
const $ = cheerio.load(renderComponent('hero', { ...EXAMPLE_HERO, badge: true }));
it('outputs the official statistics badge when officialStatisticsBadge is set to true', () => {
const $ = cheerio.load(renderComponent('hero', { ...EXAMPLE_HERO, officialStatisticsBadge: true }));

expect($('.ons-hero__badge').length).toBe(1);
expect($('.ons-hero__badge svg title').text().trim()).toBe('Offical Statistics Badge');
Expand Down

0 comments on commit 69e3aeb

Please sign in to comment.