From 373bfe66a1ea8f1c446d969000af82ae163ca18f Mon Sep 17 00:00:00 2001 From: gangachris Date: Thu, 20 Dec 2018 12:33:37 +0300 Subject: [PATCH] enable strict null check --- src/tsconfig.strictNullChecks.json | 1 + src/vs/base/test/node/config.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tsconfig.strictNullChecks.json b/src/tsconfig.strictNullChecks.json index 236f1b83e41..36fffd07d0a 100644 --- a/src/tsconfig.strictNullChecks.json +++ b/src/tsconfig.strictNullChecks.json @@ -151,6 +151,7 @@ "./vs/base/test/common/types.test.ts", "./vs/base/test/common/utils.ts", "./vs/base/test/common/uuid.test.ts", + "./vs/base/test/node/config.test.ts", "./vs/base/test/node/console.test.ts", "./vs/base/test/node/decoder.test.ts", "./vs/base/test/node/encoding/encoding.test.ts", diff --git a/src/vs/base/test/node/config.test.ts b/src/vs/base/test/node/config.test.ts index ee4f4e38c74..59df2e0d36f 100644 --- a/src/vs/base/test/node/config.test.ts +++ b/src/vs/base/test/node/config.test.ts @@ -141,7 +141,7 @@ suite('Config', () => { testFile('config', 'config.json').then(res => { fs.writeFileSync(res.testFile, '// my comment\n{ "foo": "bar" }'); - let watcher = new ConfigWatcher<{ foo: string; }>(res.testFile, { changeBufferDelay: 100, onError: console.error, defaultConfig: void 0 }); + let watcher = new ConfigWatcher<{ foo: string; }>(res.testFile, { changeBufferDelay: 100, onError: console.error, defaultConfig: { foo: 'bar' } }); watcher.getConfig(); // ensure we are in sync fs.writeFileSync(res.testFile, '// my comment\n{ "foo": "changed" }');