Skip to content

Commit

Permalink
fix(language-service): make link check pass
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Nov 24, 2016
1 parent 2a3ca7b commit 7194fc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/@angular/language-service/test/completions_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('completions', () => {
}
} catch (e) {
// Emit enough diagnostic information to reproduce the error.
console.log(
console.error(
`Position: ${position}\nContent: "${mockHost.getFileContent(fileName)}"\nStack:\n${e.stack}`);
throw e;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/@angular/language-service/test/ts_plugin_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ function expectNoDiagnostics(diagnostics: ts.Diagnostic[]) {
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
if (diagnostic.start) {
let {line, character} = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
console.log(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
console.error(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
} else {
console.log(`${message}`);
console.error(`${message}`);
}
}
expect(diagnostics.length).toBe(0);
Expand Down

0 comments on commit 7194fc2

Please sign in to comment.