Skip to content

Commit 4051bcb

Browse files
committed
test: simplify sinon restoration
1 parent a636c38 commit 4051bcb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/chain.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ let mockPushProcessors;
6464
const clearCache = (sandbox) => {
6565
delete require.cache[require.resolve('../src/proxy/processors')];
6666
delete require.cache[require.resolve('../src/proxy/chain')];
67-
sandbox.reset();
67+
sandbox.restore();
6868
};
6969

7070
describe('proxy chain', function () {
@@ -95,8 +95,6 @@ describe('proxy chain', function () {
9595

9696
afterEach(() => {
9797
// Clear the module from the cache after each test
98-
sandboxSinon.restore();
99-
sinon.restore();
10098
clearCache(sandboxSinon);
10199
});
102100

0 commit comments

Comments
 (0)