Fix snapshot tests on Windows (#398)

* Fix snapshot comparisons being backwards
* Always check out snapshots with LF endings
This commit is contained in:
Thomas Weber authored and GitHub committed 2026-10-31 09:54:21 -05:00
1 parent f26ff67e95
commit c985ca5d10
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -21,6 +21,7 @@
*.vert text eol=lf
*.xml text eol=lf
*.yml text eol=lf
*.tw-snapshot text eol=lf
# Prefer LF for these files
.editorconfig text eol=lf
+1 -1
View File
@@ -15,7 +15,7 @@ for (const testCase of Snapshots.tests) {
} else if (result !== 'VALID') {
// This assertion will always fail, but it will print out the snapshots
// for easier comparison.
assert.strictEqual(expected, actual, 'did not match; you may have to run: node test/snapshot --update');
assert.strictEqual(actual, expected, 'did not match; you may have to run: node test/snapshot --update');
}
});
}