Skip to content

Commit

Permalink
Tests: Await server start before running tests [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Sep 29, 2020
1 parent 1610387 commit 86b8071
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/index.test.js
Expand Up @@ -95,9 +95,7 @@ describe('Functionality', () => {
const htmlFilePath = pathJoin(__dirname, './fixtures/page.html');

let handle;
beforeEach(() => {
startServer(req => handle(req));
});
beforeEach(() => startServer(req => handle(req)));
afterEach(stopServer);

describe('file specified with [STATIC_FILE]', () => {
Expand Down

0 comments on commit 86b8071

Please sign in to comment.