From 700f2031699e35da29efc19da74b8765aea127e6 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Sat, 25 Dec 2021 15:03:29 +0300 Subject: [PATCH] Fix newline in tests --- test/cli/cli.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/cli/cli.test.js b/test/cli/cli.test.js index 6094b476..8dca790f 100644 --- a/test/cli/cli.test.js +++ b/test/cli/cli.test.js @@ -47,7 +47,7 @@ test('accepts svg as input stream', async () => { proc.stdin.write('stdin'); proc.stdin.end(); const stdout = await waitStdout(proc); - expect(stdout).toEqual('\n'); + expect(stdout).toEqual(''); }); test('accepts svg as string', async () => { @@ -58,7 +58,7 @@ test('accepts svg as string', async () => { { cwd: __dirname } ); const stdout = await waitStdout(proc); - expect(stdout).toEqual('\n'); + expect(stdout).toEqual(''); }); test('accepts svg as filename', async () => { @@ -82,7 +82,7 @@ test('output as stream when "-" is specified', async () => { { cwd: __dirname } ); const stdout = await waitStdout(proc); - expect(stdout).toEqual('\n'); + expect(stdout).toEqual(''); }); test('should exit with 1 code on syntax error', async () => {