From 2d051e20633b48c4b428c6613a151d17a860f135 Mon Sep 17 00:00:00 2001 From: Inesh Bose Date: Wed, 9 Oct 2024 17:27:51 +0100 Subject: [PATCH] chore: update test --- test/basic.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/basic.test.ts b/test/basic.test.ts index 15f80bad..3813a373 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -32,9 +32,7 @@ describe('tailwindcss module', async () => { (nuxt.options.tailwindcss.cssPath as string).replace(/\\/g /* windows protocol */, '/'), ) - expect(spyStderr).toHaveBeenCalledTimes(0) - expect(spyStdout).toHaveBeenCalledTimes(1) - expect(spyStdout.mock.calls[0][0]).contains('Using Tailwind CSS from ~/tailwind.css') + expect(spyStdout.mock.calls.some(c => (c[0] as string).includes('Using Tailwind CSS from ~/tailwind.css'))).toBeTruthy() }) test('default js config is merged in', () => {