Skip to content

Commit 6282673

Browse files
committed
Refactoring
1 parent 40616d8 commit 6282673

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/helpers/exit.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ export const stubProcessClock = function () {
4141
return fakeTimers.install({ toFake: ['setTimeout'] })
4242
}
4343

44-
// Stub `process.exit()`
45-
export const stubProcessExit = function () {
46-
sinon.stub(process, 'exit')
47-
}
48-
4944
export const unStubProcessClock = function (clock) {
5045
unStubProcessExit()
5146
clock.uninstall()
5247
}
5348

54-
export const unStubProcessExit = function () {
49+
// Stub `process.exit()`
50+
const stubProcessExit = function () {
51+
sinon.stub(process, 'exit')
52+
}
53+
54+
const unStubProcessExit = function () {
5555
process.exit.restore()
5656
process.exitCode = undefined
5757
}

0 commit comments

Comments
 (0)