Skip to content

Commit

Permalink
fix(tests): more windows-specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paambaati committed May 6, 2023
1 parent 923001d commit 4b48851
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,11 @@ test('🧪 run() should convert patterns to locations.', async (t) => {
nock.cleanAll();
}

t.deepEquals(
t.equal(
(glob.create as unknown as sinon.SinonSpy).firstCall.firstArg,
`${DEFAULT_WORKDIR}/*.lcov`,
PLATFORM === 'win32'
? `${DEFAULT_WORKDIR}\\*.lcov`
: `${DEFAULT_WORKDIR}/*.lcov`,
'should create a globber with given pattern.'
);
t.true(
Expand Down

0 comments on commit 4b48851

Please sign in to comment.