Skip to content

Commit 7194fc2

Browse files
committed
fix(language-service): make link check pass
1 parent 2a3ca7b commit 7194fc2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/@angular/language-service/test/completions_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('completions', () => {
9696
}
9797
} catch (e) {
9898
// Emit enough diagnostic information to reproduce the error.
99-
console.log(
99+
console.error(
100100
`Position: ${position}\nContent: "${mockHost.getFileContent(fileName)}"\nStack:\n${e.stack}`);
101101
throw e;
102102
}

modules/@angular/language-service/test/ts_plugin_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ function expectNoDiagnostics(diagnostics: ts.Diagnostic[]) {
255255
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
256256
if (diagnostic.start) {
257257
let {line, character} = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
258-
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
258+
console.error(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
259259
} else {
260-
console.log(`${message}`);
260+
console.error(`${message}`);
261261
}
262262
}
263263
expect(diagnostics.length).toBe(0);

0 commit comments

Comments
 (0)