Fixed unit tests for error counts

This commit is contained in:
Josh Goldberg 2018-04-01 22:57:38 -07:00
parent d268279c8e
commit cf0a0ec001

View File

@ -84,7 +84,7 @@ namespace ts.tscWatch {
) {
let screenClears = 0;
const outputs = host.getOutput();
const expectedOutputCount = 2 + errors.length + postErrorsWatchDiagnostics.length +
const expectedOutputCount = 1 + errors.length + postErrorsWatchDiagnostics.length +
(logsBeforeWatchDiagnostic ? logsBeforeWatchDiagnostic.length : 0) + (logsBeforeErrors ? logsBeforeErrors.length : 0);
assert.equal(outputs.length, expectedOutputCount, JSON.stringify(outputs));
let index = 0;