From 69e3aeba5901f1787d6fbb25038d4c47992f9b34 Mon Sep 17 00:00:00 2001 From: SriHV Date: Mon, 6 Jan 2025 13:48:15 +0000 Subject: [PATCH] fixed macro tests --- src/components/hero/_macro.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/hero/_macro.spec.js b/src/components/hero/_macro.spec.js index b013b8983b..a5e942a4f5 100644 --- a/src/components/hero/_macro.spec.js +++ b/src/components/hero/_macro.spec.js @@ -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');