Skip to content

Commit e8d82f4

Browse files
committed
place b64 mocks in the same folder so that devtools.js finds them
1 parent 25e8678 commit e8d82f4

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

devtools/test_dashboard/server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ config.optimization = { minimize: false };
1212

1313
var args = minimist(process.argv.slice(2), {});
1414
var PORT = args.port || 3000;
15-
var b64 = args.b64;
1615
var strict = args.strict;
1716
var mathjax3 = args.mathjax3;
1817
var mathjax3chtml = args.mathjax3chtml;
@@ -24,7 +23,7 @@ if(!strict) {
2423
config.devtool = 'eval';
2524
}
2625

27-
var mockFolder = path.join(constants.pathToImageTest, b64 ? 'b64' : 'mocks');
26+
var mockFolder = constants.pathToTestImageMocks;
2827

2928
// mock list
3029
getMockFiles()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"test-requirejs": "node tasks/test_requirejs.js",
5353
"test-plain-obj": "node tasks/test_plain_obj.js",
5454
"test": "npm run test-jasmine -- --nowatch && npm run test-bundle && npm run test-image && npm run test-export && npm run test-syntax && npm run lint",
55-
"b64": "python3 test/image/generate_b64_mocks.py && node devtools/test_dashboard/server.js --b64",
55+
"b64": "python3 test/image/generate_b64_mocks.py && node devtools/test_dashboard/server.js",
5656
"mathjax3": "node devtools/test_dashboard/server.js --mathjax3",
5757
"mathjax3chtml": "node devtools/test_dashboard/server.js --mathjax3chtml",
5858
"strict": "node devtools/test_dashboard/server.js --strict",

test/image/b64/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/image/generate_b64_mocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
root = os.getcwd()
1414
dirIn = os.path.join(root, 'test', 'image', 'mocks')
15-
dirOut = os.path.join(root, 'test', 'image', 'b64')
15+
dirOut = dirIn
1616

1717
print('output to', dirOut)
1818

0 commit comments

Comments
 (0)