From cf0a0ec0011fe53507fbc40baf8b4d42bd0f63e1 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sun, 1 Apr 2018 22:57:38 -0700 Subject: [PATCH] Fixed unit tests for error counts --- src/harness/unittests/tscWatchMode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/unittests/tscWatchMode.ts b/src/harness/unittests/tscWatchMode.ts index 8d9938bf8f5..9965489ca71 100644 --- a/src/harness/unittests/tscWatchMode.ts +++ b/src/harness/unittests/tscWatchMode.ts @@ -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;