Skip to content

Commit

Permalink
Fix lints after dep update (#48707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Apr 14, 2022
1 parent fa2515e commit e6dcf6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/testRunner/unittests/services/extract/ranges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace ts {
}
const result = refactor.extractSymbol.getRangeToExtract(file, createTextSpanFromRange(selectionRange), /*userRequested*/ false);
assert(result.targetRange === undefined, "failure expected");
const sortedErrors = result.errors!.map(e => e.messageText as string).sort();
const sortedErrors = result.errors.map(e => e.messageText as string).sort();
assert.deepEqual(sortedErrors, expectedErrors.sort(), "unexpected errors");
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/testRunner/unittests/tsserver/completionsIncomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ namespace ts.projectSystem {
typeToTriggerCompletions(indexFile.path, "s", completions => {
const sigint = completions.entries.find(e => e.name === "SIGINT");
assert(sigint);
assert(!(sigint!.data as any).moduleSpecifier);
assert(!(sigint.data as any).moduleSpecifier);
})
.continueTyping("i", completions => {
const sigint = completions.entries.find(e => e.name === "SIGINT");
Expand Down Expand Up @@ -255,7 +255,7 @@ namespace ts.projectSystem {

assert(details[0]);
assert(details[0].codeActions);
assert(details[0].codeActions![0].changes[0].textChanges[0].newText.includes(`"${(entry.data as any).moduleSpecifier}"`));
assert(details[0].codeActions[0].changes[0].textChanges[0].newText.includes(`"${(entry.data as any).moduleSpecifier}"`));
return details;
}
}
Expand Down

0 comments on commit e6dcf6f

Please sign in to comment.