diff --git a/lib/back.js b/lib/back.js index 2f55d3753..191f88d1e 100644 --- a/lib/back.js +++ b/lib/back.js @@ -263,7 +263,7 @@ function removeFixture(fixture, options) { } if (fixture && fixtureExists(fixture)) { - fs.rmSync ? fs.rmSync(fixture) : fs.unlinkSync(fixture); + fs.rmSync ? fs.rmSync(fixture) : fs.unlinkSync(fixture) } context.isLoaded = false return context diff --git a/lib/common.js b/lib/common.js index ad059fae9..5b78a0df5 100644 --- a/lib/common.js +++ b/lib/common.js @@ -651,11 +651,13 @@ const timeouts = [] const intervals = [] const immediates = [] -const wrapTimer = (timer, ids) => (...args) => { - const id = timer(...args) - ids.push(id) - return id -} +const wrapTimer = + (timer, ids) => + (...args) => { + const id = timer(...args) + ids.push(id) + return id + } const setTimeout = wrapTimer(timers.setTimeout, timeouts) const setInterval = wrapTimer(timers.setInterval, intervals) diff --git a/lib/intercepted_request_router.js b/lib/intercepted_request_router.js index 23b91ff36..97b4ccaec 100644 --- a/lib/intercepted_request_router.js +++ b/lib/intercepted_request_router.js @@ -279,9 +279,8 @@ class InterceptedRequestRouter { const requestBodyBuffer = Buffer.concat(this.requestBodyBuffers) // When request body is a binary buffer we internally use in its hexadecimal // representation. - const requestBodyIsUtf8Representable = common.isUtf8Representable( - requestBodyBuffer - ) + const requestBodyIsUtf8Representable = + common.isUtf8Representable(requestBodyBuffer) const requestBodyString = requestBodyBuffer.toString( requestBodyIsUtf8Representable ? 'utf8' : 'hex' )