diff --git a/tests/cases/unittests/services/documentRegistry.ts b/tests/cases/unittests/services/documentRegistry.ts index 50074b00db9..598416b9812 100644 --- a/tests/cases/unittests/services/documentRegistry.ts +++ b/tests/cases/unittests/services/documentRegistry.ts @@ -33,6 +33,6 @@ describe("DocumentRegistry", () => { compilerOptions.module = ts.ModuleKind.CommonJS; var f4 = documentRegistry.acquireDocument("file1.ts", compilerOptions, ts.ScriptSnapshot.fromString("var x = 1;"), "1"); - assert(f1 !== f4, "Changed module: Expected to have different instances of document"); + assert(f3 === f4, "Changed module: Expected to have the same instance of the document"); }); }); \ No newline at end of file