Skip to content

Commit

Permalink
fix: support both jasmine-core v3 and v4
Browse files Browse the repository at this point in the history
closes #8
  • Loading branch information
3cp committed Jan 23, 2022
1 parent 78e532d commit 9ea5ee2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
5 changes: 4 additions & 1 deletion lib/browser-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ function runner (opts, data, output) {
if (opts.jasmine) {
res.write('<script src="/jasmine-core/jasmine.js"></script>');
res.write('<script src="/jasmine-core/jasmine-html.js"></script>');
res.write('<script src="/jasmine-core/boot.js"></script>');
// jasmine-core v4 removed boot.js
// both jasmine-core v3 and v4 provide boot0.js and boot1.js
res.write('<script src="/jasmine-core/boot0.js"></script>');
res.write('<script src="/jasmine-core/boot1.js"></script>');
res.write('<script src="/jasmine-tap-reporter.js"></script>');
}

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@
"cat": "^0.2.0",
"chai": "^4.3.4",
"concat-stream": "^2.0.0",
"eslint": "^8.1.0",
"eslint": "^8.7.0",
"jasmine-core": "^3.10.1",
"mocha": "^9.1.3",
"socket.io-client": "^4.3.2",
"source-map-support": "^0.5.20",
"mocha": "^9.1.4",
"socket.io-client": "^4.4.1",
"source-map-support": "^0.5.21",
"standard-changelog": "^2.0.27",
"tape": "^5.3.1"
"tape": "^5.4.1"
},
"dependencies": {
"ansi-colors": "^4.1.1",
"commander": "^8.3.0",
"electron": "^15.3.0",
"electron": "^16.0.7",
"finalhandler": "^1.1.2",
"lodash.kebabcase": "^4.1.1",
"serve-static": "^1.14.1",
"serve-static": "^1.14.2",
"server-destroy": "^1.0.1",
"socket.io": "^4.3.1",
"socket.io": "^4.4.1",
"tmp": "^0.2.1",
"which": "^2.0.2"
}
Expand Down

0 comments on commit 9ea5ee2

Please sign in to comment.