Skip to content

Commit beb5490

Browse files
committed
fix path
1 parent 40a9c00 commit beb5490

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"build": "npm run preprocess && npm run bundle",
4848
"watch": "node tasks/watch_plotly.js",
4949
"test-jasmine": "karma start test/jasmine/karma.conf.js",
50-
"test-image": "node test/image/compare_pixel_test.js",
50+
"test-image": "node test/image/compare_pixels_test.js",
5151
"test": "npm run test-jasmine && npm test-image",
5252
"start-test_dashboard": "node devtools/test_dashboard/server.js",
5353
"start-image_viewer": "node devtools/image_viewer/server.js"

test/image/compare_pixels_test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var request = require('request');
55
var path = require('path');
66

77
var constants = require('../../tasks/util/constants');
8-
var getOptions = require('../../tasks/util/get_image_requests_options');
8+
var getOptions = require('../../tasks/util/get_image_request_options');
99

1010
// packages inside the image server docker
1111
var test = require('tape');
@@ -29,7 +29,7 @@ function runAll () {
2929
test('testing mocks', function (t) {
3030

3131
console.error('### beginning pixel comparison tests ###');
32-
var files = fs.readdirSync('./mocks');
32+
var files = fs.readdirSync(constants.pathToTestImageMocks);
3333

3434
t.plan(files.length - 1); // -1 is for font-wishlist...
3535
for (var i = 0; i < files.length; i ++) {
@@ -57,6 +57,7 @@ function testMock (fileName, t) {
5757
scale: 1
5858
};
5959

60+
6061
var imageFileName = fileName.split('.')[0] + '.png';
6162
var savedImagePath = path.join(constants.pathToTestImages, imageFileName);
6263
var diffPath = path.join(constants.pathToTestImagesDiff, 'diff-' + imageFileName);
@@ -71,6 +72,7 @@ function testMock (fileName, t) {
7172
tolerance: 0.0
7273
};
7374

75+
console.log(savedImagePath)
7476
if(statusCode === 485) {
7577
console.error(imageFileName, '- skip');
7678
}

0 commit comments

Comments
 (0)