Skip to content

Commit 7b7e217

Browse files
committed
chore: use strictEqual instead of deepStrictEqual for simplicity
1 parent e2e8f7b commit 7b7e217

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/utils-test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ describe('toWin32Path', () => {
3939
it('returns early', () => {
4040
execFileSyncStub.returns(asBuffer(''));
4141

42-
assert.deepStrictEqual(toWin32Path('D:\\'), 'D:\\');
43-
assert.deepStrictEqual(toWin32Path('C:\\'), 'C:\\');
42+
assert.strictEqual(toWin32Path('D:\\'), 'D:\\');
43+
assert.strictEqual(toWin32Path('C:\\'), 'C:\\');
4444

4545
assert.ok(execFileSyncStub.notCalled);
4646
});
@@ -61,7 +61,7 @@ describe('toWSLPath', () => {
6161
it('trims off the trailing newline', () => {
6262
execFileSyncStub.returns(asBuffer('the-path\n'));
6363

64-
assert.deepStrictEqual(toWSLPath(''), 'the-path');
64+
assert.strictEqual(toWSLPath(''), 'the-path');
6565
})
6666
})
6767

@@ -73,7 +73,7 @@ describe('getWSLLocalAppDataPath', () => {
7373

7474
const path = '/mnt/c/Users/user1/.bin:/mnt/c/Users/user1:/mnt/c/Users/user1/AppData/';
7575

76-
assert.deepStrictEqual(getWSLLocalAppDataPath(path), '/c/folder/');
76+
assert.strictEqual(getWSLLocalAppDataPath(path), '/c/folder/');
7777
assert.ok(execFileSyncStub.calledWith('wslpath', ['-u', 'c:\\Users\\user1\\AppData\\Local']));
7878
});
7979
});

0 commit comments

Comments
 (0)