Fix snapshot tests on Windows (#398)
* Fix snapshot comparisons being backwards * Always check out snapshots with LF endings
This commit is contained in:
1 parent
f26ff67e95
commit
c985ca5d10
2 files changed
+2
-1
No files matched your search
@@ -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
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user