From ece56f134c2439dbe08349660546dd8be145711c Mon Sep 17 00:00:00 2001 From: killagu Date: Sat, 21 Sep 2024 22:48:56 +0800 Subject: [PATCH] f --- test/config.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/config.test.js b/test/config.test.js index 6919f7f..da49389 100644 --- a/test/config.test.js +++ b/test/config.test.js @@ -20,7 +20,10 @@ function getError(config) { } describe('get config', function() { - afterEach(mm.restore); + afterEach(() => { + mm.restore(); + delete process.env.XTRANSIT_NODE_EXE; + }); it('should throw error', function() { expect(getError({})).to.be('config.server must be passed in!');