Test for existence of diagnostic when running tests
This commit is contained in:
parent
29dbabe2e1
commit
d21c078363
1 changed files with 2 additions and 2 deletions
|
@ -362,11 +362,11 @@ interface Array<T> {}`
|
||||||
|
|
||||||
const diagnostics = languageService.getSuggestionDiagnostics(f.path);
|
const diagnostics = languageService.getSuggestionDiagnostics(f.path);
|
||||||
const diagnostic = find(diagnostics, diagnostic => diagnostic.messageText === description.message);
|
const diagnostic = find(diagnostics, diagnostic => diagnostic.messageText === description.message);
|
||||||
assert.isNotNull(diagnostic);
|
assert.exists(diagnostic);
|
||||||
|
|
||||||
const actions = codefix.getFixes(context);
|
const actions = codefix.getFixes(context);
|
||||||
const action = find(actions, action => action.description === description.message)!;
|
const action = find(actions, action => action.description === description.message)!;
|
||||||
assert.isNotNull(action);
|
assert.exists(action);
|
||||||
|
|
||||||
const data: string[] = [];
|
const data: string[] = [];
|
||||||
data.push(`// ==ORIGINAL==`);
|
data.push(`// ==ORIGINAL==`);
|
||||||
|
|
Loading…
Reference in a new issue