Enable strict null checking for String test (#65449)

pull/65454/head
Kermit Xuan 2018-12-20 13:52:06 +08:00 committed by Matt Bierner
parent 11bbd0569b
commit 48bd6f8b4e
2 changed files with 2 additions and 1 deletions

View File

@ -145,6 +145,7 @@
"./vs/base/test/common/paths.test.ts",
"./vs/base/test/common/resources.test.ts",
"./vs/base/test/common/scrollable.test.ts",
"./vs/base/test/common/strings.test.ts",
"./vs/base/test/common/types.test.ts",
"./vs/base/test/common/utils.ts",
"./vs/base/test/common/uuid.test.ts",

View File

@ -320,7 +320,7 @@ suite('Strings', () => {
});
test('fuzzyContains', () => {
assert.ok(!strings.fuzzyContains(void 0, null));
assert.ok(!strings.fuzzyContains((void 0)!, null!));
assert.ok(strings.fuzzyContains('hello world', 'h'));
assert.ok(!strings.fuzzyContains('hello world', 'q'));
assert.ok(strings.fuzzyContains('hello world', 'hw'));