From a1be5a4d686ee8b90b6526a191ffe9394a129e7e Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Wed, 5 Apr 2017 07:34:12 -0700 Subject: [PATCH] Update cachingInServerLSHost.ts --- src/harness/unittests/cachingInServerLSHost.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/harness/unittests/cachingInServerLSHost.ts b/src/harness/unittests/cachingInServerLSHost.ts index 4107d8cfd14..e20288b8cd9 100644 --- a/src/harness/unittests/cachingInServerLSHost.ts +++ b/src/harness/unittests/cachingInServerLSHost.ts @@ -123,7 +123,7 @@ namespace ts { try { // trigger synchronization to make sure that LSHost will try to find 'f2' module on disk project.getLanguageService().getSemanticDiagnostics(imported.name); - assert.fail(false, `should not find file '${imported.name}'`); + assert.isTrue(false, `should not find file '${imported.name}'`); } catch (e) { assert.isTrue(e.message.indexOf(`Could not find file: '${imported.name}'.`) === 0); @@ -203,4 +203,4 @@ namespace ts { assert.isTrue(diags.length === 0); }); }); -} \ No newline at end of file +}