Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 4b48851

Browse files
committed
fix(tests): more windows-specific tests
1 parent 923001d commit 4b48851

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/main.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,11 @@ test('🧪 run() should convert patterns to locations.', async (t) => {
388388
nock.cleanAll();
389389
}
390390

391-
t.deepEquals(
391+
t.equal(
392392
(glob.create as unknown as sinon.SinonSpy).firstCall.firstArg,
393-
`${DEFAULT_WORKDIR}/*.lcov`,
393+
PLATFORM === 'win32'
394+
? `${DEFAULT_WORKDIR}\\*.lcov`
395+
: `${DEFAULT_WORKDIR}/*.lcov`,
394396
'should create a globber with given pattern.'
395397
);
396398
t.true(

0 commit comments

Comments
 (0)