Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Blue committed Jun 7, 2016
1 parent ddbc926 commit 901faba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
8 changes: 2 additions & 6 deletions spec/web-worker-other-func.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ describe('web-worker', function () {

beforeEach(function () {
function workerFunc() {
self.postMessage(foo());
self.postMessage('Hello World');
}

function otherFunc() {
return 'Hello World';
}

myWorker = $worker().create(workerFunc, 'self.otherFunc = ', otherFunc);
myWorker = $worker().create(workerFunc);
});

afterEach(function () {
Expand Down
6 changes: 0 additions & 6 deletions spec/web-worker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@ describe('web-worker', function () {
var myWorker;

beforeEach(function () {
function foo() {

}

myWorker = $worker().create(function (e) {
var foo = foo;

self.postMessage(e.data.reduce(function (sum, int) {
return sum += int;
}, 0));
Expand Down

0 comments on commit 901faba

Please sign in to comment.