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 +}