Skip to content

Commit

Permalink
Use relative URLs in WebWorker test
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Dec 11, 2017
1 parent c0c6779 commit 93f422a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/webworker/webworker-script.js
Expand Up @@ -4,7 +4,7 @@

// Abort if we are not running in a WebWorker
if (typeof importScripts !== "undefined") {
importScripts("https://localhost:8080/pkg/sinon.js");
importScripts("/pkg/sinon.js");

var stub = sinon.stub().returns("worker response");

Expand Down
2 changes: 1 addition & 1 deletion test/webworker/webworker-support-assessment.js
Expand Up @@ -8,7 +8,7 @@ if (typeof Worker !== "undefined") {

describe("WebWorker support", function () {
it("should not crash", function (done) {
var worker = new Worker("https://localhost:8080/test/webworker/webworker-script.js");
var worker = new Worker("/test/webworker/webworker-script.js");

worker.onmessage = function (msg) {
try { // eslint-disable-line no-restricted-syntax
Expand Down

0 comments on commit 93f422a

Please sign in to comment.