Skip to content

Commit 0fce85b

Browse files
Be more explicit about expected args in a mock.
1 parent 83ae768 commit 0fce85b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/common/platform/filesystem.unit.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ suite('Temporary files', () => {
6464
filePath: '/tmp/xyz.tmp',
6565
dispose: (() => undefined)
6666
};
67-
raw.setup(r => r.file({ postfix: '.tmp' }, TypeMoq.It.isAny()))
67+
raw.setup(r => r.file({ postfix: '.tmp', dir: undefined }, TypeMoq.It.isAny()))
6868
.callback((_s, cb) => {
6969
cb(undefined, expected.filePath, undefined, expected.dispose);
7070
});
@@ -77,7 +77,7 @@ suite('Temporary files', () => {
7777

7878
test('failure', async () => {
7979
const err = new Error('something went wrong');
80-
raw.setup(r => r.file({ postfix: '.tmp' }, TypeMoq.It.isAny()))
80+
raw.setup(r => r.file({ postfix: '.tmp', dir: undefined }, TypeMoq.It.isAny()))
8181
.callback((_s, cb) => {
8282
cb(err);
8383
});

0 commit comments

Comments
 (0)