Skip to content

Commit

Permalink
fix(tests): adjust expected output for stdout cli tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BenoitZugmeyer committed May 18, 2017
1 parent 78eca53 commit f383198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli-test/tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit f383198

Please sign in to comment.