Skip to content

Commit a8eb466

Browse files
committed
Normalize trailing whitespace in CLI tests
1 parent fb48868 commit a8eb466

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cli/__tests__/compile-stylex-folder-test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('compiling __mocks__/source to __mocks__/src correctly such that it mat
107107
if (path.extname(outputPath) === '.js') {
108108
const outputContent = await fs.readFile(outputPath, 'utf-8');
109109
const snapshotContent = await fs.readFile(snapshotPath, 'utf-8');
110-
expect(outputContent).toEqual(snapshotContent);
110+
expect(outputContent.trim()).toEqual(snapshotContent.trim());
111111
}
112112
}
113113
});
@@ -146,7 +146,7 @@ describe('cli works with -i and -o args', () => {
146146
fs.readFile(outputPath, 'utf-8'),
147147
fs.readFile(snapshotDir, 'utf-8'),
148148
]);
149-
expect(outputContent).toEqual(snapshotContent);
149+
expect(outputContent.trim()).toEqual(snapshotContent.trim());
150150
}
151151
}),
152152
);
@@ -227,7 +227,7 @@ describe('cli works with multiple inputs and outputs', () => {
227227
if (path.extname(outputPath) === '.js') {
228228
const outputContent = await fs.readFile(outputPath, 'utf-8');
229229
const snapshotContent = await fs.readFile(snapshotPath, 'utf-8');
230-
expect(outputContent).toEqual(snapshotContent);
230+
expect(outputContent.trim()).toEqual(snapshotContent.trim());
231231
}
232232
}
233233
}

0 commit comments

Comments
 (0)