Skip to content

Commit 4ca7aa4

Browse files
Update error code expectations.
1 parent 62e1e9d commit 4ca7aa4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/testRunner/unittests/tsserverProjectSystem.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4999,7 +4999,7 @@ namespace ts.projectSystem {
49994999
);
50005000
const errorResult = <protocol.Diagnostic[]>session.executeCommand(getErrRequest).response;
50015001
assert.isTrue(errorResult.length === 1);
5002-
assert.equal(errorResult[0].code, Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code);
5002+
assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0.code);
50035003
});
50045004

50055005
it("should report semantic errors for configured js project with '// @ts-check' and skipLibCheck=true", () => {
@@ -5026,7 +5026,7 @@ namespace ts.projectSystem {
50265026
);
50275027
const errorResult = <protocol.Diagnostic[]>session.executeCommand(getErrRequest).response;
50285028
assert.isTrue(errorResult.length === 1);
5029-
assert.equal(errorResult[0].code, Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code);
5029+
assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0.code);
50305030
});
50315031

50325032
it("should report semantic errors for configured js project with checkJs=true and skipLibCheck=true", () => {
@@ -5055,7 +5055,7 @@ namespace ts.projectSystem {
50555055
);
50565056
const errorResult = <protocol.Diagnostic[]>session.executeCommand(getErrRequest).response;
50575057
assert.isTrue(errorResult.length === 1);
5058-
assert.equal(errorResult[0].code, Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code);
5058+
assert.equal(errorResult[0].code, Diagnostics.The_types_of_these_values_indicates_that_this_condition_will_always_be_0.code);
50595059
});
50605060
});
50615061

0 commit comments

Comments
 (0)