Skip to content

Commit d21c078

Browse files
author
Benjamin Lichtman
committed
Test for existence of diagnostic when running tests
1 parent 29dbabe commit d21c078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/testRunner/unittests/convertToAsyncFunction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,11 @@ interface Array<T> {}`
362362

363363
const diagnostics = languageService.getSuggestionDiagnostics(f.path);
364364
const diagnostic = find(diagnostics, diagnostic => diagnostic.messageText === description.message);
365-
assert.isNotNull(diagnostic);
365+
assert.exists(diagnostic);
366366

367367
const actions = codefix.getFixes(context);
368368
const action = find(actions, action => action.description === description.message)!;
369-
assert.isNotNull(action);
369+
assert.exists(action);
370370

371371
const data: string[] = [];
372372
data.push(`// ==ORIGINAL==`);

0 commit comments

Comments
 (0)