Skip to content

Commit

Permalink
Reset mockdate if not used
Browse files Browse the repository at this point in the history
  • Loading branch information
jamonkko committed Jul 2, 2023
1 parent d20a576 commit 5ef83e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export default function consoleLogServer (opts) {
)
if (opts.mockDate !== undefined) {
MockDate.set(opts.mockDate)
} else {
MockDate.reset()
}
const cnsl = opts.console
opts.responseHeader = opts.responseHeader && _.castArray(opts.responseHeader)
Expand Down

0 comments on commit 5ef83e4

Please sign in to comment.