We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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