"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.mockTime = mockTime;
exports.restoreTime = restoreTime;
// setting Date.now() to a set time for Jest tests
var dateNowMock;

function mockTime(timestamp) {
  dateNowMock = jest.spyOn(Date, 'now').mockImplementation(function () {
    return timestamp;
  });
}

function restoreTime() {
  dateNowMock.mockRestore();
}