Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32293e3 + 9f73f51 commit 2c7c2dbCopy full SHA for 2c7c2db
test/image/compare_pixels_test.js
@@ -36,7 +36,10 @@ else runSingle(userFileName);
36
function runAll() {
37
test('testing mocks', function(t) {
38
39
- var allMocks = fs.readdirSync(constants.pathToTestImageMocks);
+ var fileNames = fs.readdirSync(constants.pathToTestImageMocks);
40
+
41
+ // eliminate pollutants (e.g .DS_Store) that can accumulate in the mock directory
42
+ var allMocks = fileNames.filter(function(name) {return name.slice(-5) === '.json';});
43
44
/* Test cases:
45
*
0 commit comments