From f38319865ccbd35b612d6c6860f90f38483b7225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Zugmeyer?= Date: Thu, 18 May 2017 22:24:18 +0200 Subject: [PATCH] fix(tests): adjust expected output for stdout cli tests In #54 I removed the extra new line at the end of files printed to stdout. I wasn't aware of cli-tests, so I didn't change those. This commit adjust the expected output of files formated and printed to stdout. --- cli-test/tests/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli-test/tests/index.js b/cli-test/tests/index.js index 0c751fb..bb9e5d5 100644 --- a/cli-test/tests/index.js +++ b/cli-test/tests/index.js @@ -70,7 +70,7 @@ test('formats files and outputs to stdout', async () => { test('accepts stdin of code', async () => { const stdin = 'echo "console.log( window.baz , typeof [] ); "' const stdout = await runPrettierESLintCLI('--stdin', stdin) - expect(stdout).toEqual('console.log(window.baz, typeof [])\n\n') + expect(stdout).toEqual('console.log(window.baz, typeof [])\n') }) const writeCommand = 'cli-test/fixtures/example*.js --write --no-eslint-ignore'