Skip to content

Commit a899283

Browse files
committed
fix path the image diff (fixes npm run start-image_viewer)
1 parent c1cd50c commit a899283

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/image/assets/get_image_paths.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ module.exports = function getImagePaths(mockName, format) {
2020
return {
2121
baseline: join(constants.pathToTestImageBaselines, mockName, format),
2222
test: join(constants.pathToTestImages, mockName, format),
23-
diff: join(constants.pathToTestImagesDiff, mockName, format)
23+
diff: join(constants.pathToTestImagesDiff, 'diff-' + mockName, format)
2424
};
2525
};
2626

27-
function join(basePath, mockName, format) {
28-
return path.join(basePath, mockName) + '.' + format;
27+
function join(basePath, fileName, format) {
28+
return path.join(basePath, fileName) + '.' + format;
2929
}

0 commit comments

Comments
 (0)