From af4ea605f214aac0e526dbba9e2a5086e50dde39 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sun, 19 Apr 2020 17:18:02 -0400 Subject: [PATCH] Fixed a couple of tsserver unit tests --- src/testRunner/unittests/tsserver/openFile.ts | 2 +- src/testRunner/unittests/tsserver/projectReferenceErrors.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/testRunner/unittests/tsserver/openFile.ts b/src/testRunner/unittests/tsserver/openFile.ts index 1bc7f10cf9f..52949ab821a 100644 --- a/src/testRunner/unittests/tsserver/openFile.ts +++ b/src/testRunner/unittests/tsserver/openFile.ts @@ -175,7 +175,7 @@ bar();` file, syntax: [], semantic: [ - createDiagnostic(locationOfY.start, locationOfY.end, Diagnostics.Type_0_is_not_assignable_to_type_1, ["10", "string"]), + createDiagnostic(locationOfY.start, locationOfY.end, Diagnostics.Type_0_is_not_assignable_to_type_1, ["number", "string"]), ], suggestion: [] }, diff --git a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts index 9444ccb7a9d..0fb2f8d883f 100644 --- a/src/testRunner/unittests/tsserver/projectReferenceErrors.ts +++ b/src/testRunner/unittests/tsserver/projectReferenceErrors.ts @@ -166,7 +166,7 @@ fnErr(); { line: 6, offset: 12 }, { line: 6, offset: 13 }, Diagnostics.Type_0_is_not_assignable_to_type_1, - ["10", "string"], + ["number", "string"], "error", ) ], @@ -235,7 +235,7 @@ fnErr(); { line: 6, offset: 5 }, { line: 6, offset: 6 }, Diagnostics.Type_0_is_not_assignable_to_type_1, - ["10", "string"], + ["number", "string"], "error", ) ],