Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/image/compare_pixels_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ else runSingle(userFileName);
function runAll() {
test('testing mocks', function(t) {

var allMocks = fs.readdirSync(constants.pathToTestImageMocks);
var fileNames = fs.readdirSync(constants.pathToTestImageMocks);

// eliminate pollutants (e.g .DS_Store) that can accumulate in the mock directory
var allMocks = fileNames.filter(function(name) {return name.slice(-5) === '.json';});

/* Test cases:
*
Expand Down