aboutsummaryrefslogtreecommitdiff
path: root/tests/formatting.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/formatting.test.js')
-rw-r--r--tests/formatting.test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/formatting.test.js b/tests/formatting.test.js
index 6514fec..2a3e373 100644
--- a/tests/formatting.test.js
+++ b/tests/formatting.test.js
@@ -54,6 +54,9 @@ const assertFormatting = (file) => {
// we now check that we have indeed formatted the code
expect(updatedLines).not.toBe(lines);
+
+ // check snapshot
+ expect(updatedLines).toMatchSnapshot();
});
test(`Prettier formats ${filename} file with :PrettierAsync command`, async () => {
@@ -76,6 +79,9 @@ const assertFormatting = (file) => {
// we now check that we have indeed formatted the code
expect(lines).not.toBe(updatedLines);
+
+ // check snapshot
+ expect(updatedLines).toMatchSnapshot();
});
};