Skip to content

Commit 8ec9ca0

Browse files
committed
fix(NODE-3521): lint errors
1 parent 05ad2d2 commit 8ec9ca0

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

test/unit/cursor/aggregation_cursor.test.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
const { expect } = require('chai');
4-
const { createServer, cleanup, isHello } = require('../../tools/mongodb-mock/index')
54
const mock = require('../../tools/mongodb-mock/index');
65
const { Topology } = require('../../../src/sdam/topology');
76
const { Long } = require('bson');
@@ -14,12 +13,8 @@ describe('Aggregation Cursor', function () {
1413
afterEach(function () {
1514
mock.cleanup();
1615
});
17-
beforeEach(async function() {
18-
test.server = await mock.createServer();
19-
})
20-
return mock.createServer().then(mockServer => {
21-
test.server = mockServer;
22-
});
16+
beforeEach(async function () {
17+
test.server = await mock.createServer();
2318
});
2419

2520
context('when there is a data bearing server', function () {

test/unit/cursor/find_cursor.test.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ describe('Find Cursor', function () {
1414
afterEach(function () {
1515
mock.cleanup();
1616
});
17-
beforeEach(async function() {
18-
test.server = await mock.createServer();
19-
})
20-
return mock.createServer().then(mockServer => {
21-
test.server = mockServer;
22-
});
17+
beforeEach(async function () {
18+
test.server = await mock.createServer();
2319
});
2420

2521
context('when there is a data bearing server', function () {

0 commit comments

Comments
 (0)