Skip to content

Commit 7d47629

Browse files
committed
ensure stub actually returns a disposable
1 parent 456bf99 commit 7d47629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/src/test/suite/experiments/data/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ suite('Experiments Data Test Suite', () => {
3131

3232
describe('ExperimentsData', () => {
3333
it('should debounce all calls to update that are made within 200ms', async () => {
34-
stub(Watcher, 'createFileSystemWatcher').resolves(mockWatcher)
34+
stub(Watcher, 'createFileSystemWatcher').returns(mockWatcher)
3535
stub(Watcher, 'createNecessaryFileSystemWatcher').returns(mockWatcher)
3636

3737
const { cliReader, internalCommands } = buildInternalCommands(disposable)

0 commit comments

Comments
 (0)