diff --git a/packages/ibm-products/src/components/Coachmark/Coachmark.test.js b/packages/ibm-products/src/components/Coachmark/Coachmark.test.js index c602889192..e956dca4ee 100644 --- a/packages/ibm-products/src/components/Coachmark/Coachmark.test.js +++ b/packages/ibm-products/src/components/Coachmark/Coachmark.test.js @@ -315,11 +315,12 @@ describe(componentName, () => { it('tests clamp helper function', () => { expect(clamp(100, 50, 20)).toBe(50); expect(clamp(40, 10, 50)).toBe(40); - it('Check coachmark can be open by default', () => { - renderCoachmark({ - 'data-testid': dataTestId, - isOpenByDefault: true, + it('Check coachmark can be open by default', () => { + renderCoachmark({ + 'data-testid': dataTestId, + isOpenByDefault: true, + }); + expect(isCoachmarkVisible()).toBeTruthy(); }); - expect(isCoachmarkVisible()).toBeTruthy(); }); });