Skip to content

Commit 0ee22ec

Browse files
PR requested changes 2
1 parent b6a7814 commit 0ee22ec

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

test/unit/connection_string.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,12 +841,12 @@ describe('Connection String', function () {
841841
let stderrStub;
842842
let stdoutStub;
843843

844-
before(() => {
844+
beforeEach(() => {
845845
stdoutStub = sinon.stub(process.stdout);
846846
stderrStub = sinon.stub(process.stderr);
847847
});
848848

849-
after(() => {
849+
afterEach(() => {
850850
sinon.restore();
851851
});
852852

test/unit/mongo_client.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
('use strict');
2+
13
import { inspect } from 'util';
24

3-
('use strict');
45
const os = require('os');
56
const fs = require('fs');
67
const { expect } = require('chai');
@@ -822,12 +823,12 @@ describe('MongoOptions', function () {
822823
let stderrStub;
823824
let stdoutStub;
824825

825-
before(() => {
826+
beforeEach(() => {
826827
stdoutStub = sinon.stub(process.stdout);
827828
stderrStub = sinon.stub(process.stderr);
828829
});
829830

830-
after(() => {
831+
afterEach(() => {
831832
sinon.restore();
832833
});
833834

0 commit comments

Comments
 (0)