1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-29 20:21:14 +03:00

Fix newline in tests

This commit is contained in:
Bogdan Chadkin
2021-12-25 15:03:29 +03:00
parent 8ae65b7282
commit 700f203169

View File

@ -47,7 +47,7 @@ test('accepts svg as input stream', async () => {
proc.stdin.write('<svg><title>stdin</title></svg>');
proc.stdin.end();
const stdout = await waitStdout(proc);
expect(stdout).toEqual('<svg/>\n');
expect(stdout).toEqual('<svg/>');
});
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('<svg/>\n');
expect(stdout).toEqual('<svg/>');
});
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('<svg/>\n');
expect(stdout).toEqual('<svg/>');
});
test('should exit with 1 code on syntax error', async () => {