From 11bbd0569b6ed11dee1860f13049c2fd2ac5589b Mon Sep 17 00:00:00 2001 From: Chris Ganga Date: Thu, 20 Dec 2018 08:51:33 +0300 Subject: [PATCH] enable strict null check for src/vs/base/test/common/async.test.ts (#65442) --- src/tsconfig.strictNullChecks.json | 1 + src/vs/base/test/common/async.test.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tsconfig.strictNullChecks.json b/src/tsconfig.strictNullChecks.json index 50696af8e1c..0ba7e065858 100644 --- a/src/tsconfig.strictNullChecks.json +++ b/src/tsconfig.strictNullChecks.json @@ -120,6 +120,7 @@ "./vs/base/test/browser/ui/tree/objectTreeModel.test.ts", "./vs/base/test/common/arrays.test.ts", "./vs/base/test/common/assert.test.ts", + "./vs/base/test/common/async.test.ts", "./vs/base/test/common/cache.test.ts", "./vs/base/test/common/cancellation.test.ts", "./vs/base/test/common/charCode.test.ts", diff --git a/src/vs/base/test/common/async.test.ts b/src/vs/base/test/common/async.test.ts index 76257d43640..f354e5edc22 100644 --- a/src/vs/base/test/common/async.test.ts +++ b/src/vs/base/test/common/async.test.ts @@ -522,7 +522,7 @@ suite('Async', () => { assert.ok(r2Queue); assert.equal(r1Queue, queue.queueFor(URI.file('/some/path'))); // same queue returned - let syncPromiseFactory = () => Promise.resolve(null); + let syncPromiseFactory = () => Promise.resolve(undefined); r1Queue.queue(syncPromiseFactory);