Skip to content

Commit af4ea60

Browse files
Fixed a couple of tsserver unit tests
1 parent b14b231 commit af4ea60

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/testRunner/unittests/tsserver/openFile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ bar();`
175175
file,
176176
syntax: [],
177177
semantic: [
178-
createDiagnostic(locationOfY.start, locationOfY.end, Diagnostics.Type_0_is_not_assignable_to_type_1, ["10", "string"]),
178+
createDiagnostic(locationOfY.start, locationOfY.end, Diagnostics.Type_0_is_not_assignable_to_type_1, ["number", "string"]),
179179
],
180180
suggestion: []
181181
},

src/testRunner/unittests/tsserver/projectReferenceErrors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ fnErr();
166166
{ line: 6, offset: 12 },
167167
{ line: 6, offset: 13 },
168168
Diagnostics.Type_0_is_not_assignable_to_type_1,
169-
["10", "string"],
169+
["number", "string"],
170170
"error",
171171
)
172172
],
@@ -235,7 +235,7 @@ fnErr();
235235
{ line: 6, offset: 5 },
236236
{ line: 6, offset: 6 },
237237
Diagnostics.Type_0_is_not_assignable_to_type_1,
238-
["10", "string"],
238+
["number", "string"],
239239
"error",
240240
)
241241
],

0 commit comments

Comments
 (0)