Skip to content

Commit

Permalink
test: fix workers test (#3527)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Nov 10, 2018
1 parent d3f50ea commit 27ea226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/worker.spec.js
Expand Up @@ -15,7 +15,7 @@ module.exports.addTests = function({testRunner, expect}) {
expect(await worker.evaluate(() => self.workerFunction())).toBe('worker function result');

await page.goto(server.EMPTY_PAGE);
expect(page.workers()).toEqual([]);
expect(page.workers().length).toBe(0);
});
it('should emit created and destroyed events', async function({page}) {
const workerCreatedPromise = new Promise(x => page.once('workercreated', x));
Expand Down Expand Up @@ -55,4 +55,4 @@ module.exports.addTests = function({testRunner, expect}) {
expect(errorLog.message).toContain('this is my error');
});
});
};
};

0 comments on commit 27ea226

Please sign in to comment.