Skip to content

Commit

Permalink
test: ensure mock server is setup before continuing with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Mar 9, 2020
1 parent 2355997 commit 77442f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/cmap/connection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const expect = require('chai').expect;
describe('Connection', function() {
let server;
after(() => mock.cleanup());
before(() => {
mock.createServer().then(s => (server = s));
});
before(() =>
mock.createServer().then(s => (server = s))
);

it('should support fire-and-forget messages', function(done) {
server.setMessageHandler(request => {
Expand Down

0 comments on commit 77442f8

Please sign in to comment.