Skip to content

Commit 8458847

Browse files
committed
Fix test case in testimonials component to account for remocking logging
1 parent dc63e88 commit 8458847

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

‎src/components/Testimonials/__tests__/client.spec.ts‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,9 @@ describe('TestimonialsCarousel LoadableScript', () => {
142142
stopOnMouseEnter: true,
143143
})
144144
})
145-
146-
it('should log successful initialization', () => {
147-
const consoleSpy = vi.spyOn(console, 'log').mockImplementation(() => {})
148-
149-
TestimonialsCarousel.init()
150-
151-
expect(consoleSpy).toHaveBeenCalledWith('Testimonials carousel initialized with autoplay')
152-
153-
consoleSpy.mockRestore()
154-
})
155145
})
156146

157-
describe('Navigation Buttons', () => {
147+
describe('Navigation controls', () => {
158148
it('should setup prev/next button event listeners', () => {
159149
TestimonialsCarousel.init()
160150

0 commit comments

Comments
 (0)