Skip to content

Commit 6b3b64d

Browse files
committed
test: ensure mock server is setup before continuing with tests
1 parent 6238c84 commit 6b3b64d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/cmap/connection.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ const expect = require('chai').expect;
99
describe('Connection', function() {
1010
let server;
1111
after(() => mock.cleanup());
12-
before(() => {
13-
mock.createServer().then(s => (server = s));
14-
});
12+
before(() =>
13+
mock.createServer().then(s => (server = s))
14+
);
1515

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

0 commit comments

Comments
 (0)