Skip to content

Commit

Permalink
add worker test
Browse files Browse the repository at this point in the history
  • Loading branch information
gmaclennan committed Nov 15, 2016
1 parent b7b06ed commit c0c4ed1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"mkdirp": "^0.5.1",
"tape": "^4.6.2",
"uglify-js": "^2.7.4",
"webworkify": "^1.4.0",
"zuul": "^3.11.1"
},
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions test/test-worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if (process.browser && window.Worker) {
require('webworkify')(require('./test.js'));
}

0 comments on commit c0c4ed1

Please sign in to comment.