Skip to content

Commit 04e3309

Browse files
committed
reset debug value
1 parent 2e2ccc6 commit 04e3309

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/qs/utils.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ test('is_buffer()', function () {
170170
});
171171

172172
test("debug()", function(){
173-
const originalEnv = process.env;
173+
const originalDebugValue = process.env["DEBUG"];
174+
174175
const spy = jest.spyOn(console, "log");
175176

176177
// Debug enabled
@@ -211,6 +212,6 @@ test("debug()", function(){
211212
authorization: "REDACTED"
212213
});
213214

214-
process.env = originalEnv;
215+
process.env["DEBUG"] = originalDebugValue;
215216

216217
})

0 commit comments

Comments
 (0)