Update cachingInServerLSHost.ts

This commit is contained in:
Ryan Cavanaugh 2017-04-05 07:34:12 -07:00 committed by GitHub
parent e3bb5d3f28
commit a1be5a4d68

View File

@ -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);
});
});
}
}