Skip to content

Commit

Permalink
chore: use strictEqual instead of deepStrictEqual for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed May 21, 2020
1 parent 35fc9ed commit 8fdf812
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/utils-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ describe('toWin32Path', () => {
it('returns early', () => {
execFileSyncStub.returns(asBuffer(''));

assert.deepStrictEqual(toWin32Path('D:\\'), 'D:\\');
assert.deepStrictEqual(toWin32Path('C:\\'), 'C:\\');
assert.strictEqual(toWin32Path('D:\\'), 'D:\\');
assert.strictEqual(toWin32Path('C:\\'), 'C:\\');

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

assert.deepStrictEqual(toWSLPath(''), 'the-path');
assert.strictEqual(toWSLPath(''), 'the-path');
})
})

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

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

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

0 comments on commit 8fdf812

Please sign in to comment.