Skip to content

Commit 54f2352

Browse files
authored
refactor(NODE-3717): reorganize tests pt5
1 parent 451627a commit 54f2352

16 files changed

+584
-650
lines changed

test/functional/byo_promises.test.js

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

3-
var expect = require('chai').expect;
3+
const { expect } = require('chai');
4+
const { PromiseProvider } = require('../../src/promise_provider');
45

56
class CustomPromise extends Promise {}
67
CustomPromise.prototype.isCustomMongo = true;
78

89
describe('Optional PromiseLibrary / maybePromise', function () {
10+
afterEach(() => {
11+
PromiseProvider.set(Promise);
12+
});
13+
914
it('should correctly implement custom dependency-less promise', function (done) {
1015
const getCustomPromise = v => new CustomPromise(resolve => resolve(v));
1116
const getNativePromise = v => new Promise(resolve => resolve(v));

0 commit comments

Comments
 (0)