Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('accept no arguments', () => {
MockDate.set(new Date(2015, 0).valueOf())
expect(
matrix(undefined, true).toString()
).toEqual(jan15.toString())
MockDate.reset()
})
})
export function resetMockDate() {
MockDate.reset();
}
MockDate.set(10000000)
const api = setup({
baseURL: 'https://httpbin.org',
cache: { readHeaders: true }
})
const response = await api.get('/cache/2345')
assert.ok(!response.request.fromCache)
const item = await api.cache.getItem('https://httpbin.org/cache/2345')
assert.equal(item.expires, 12345000)
MockDate.reset()
})
afterEach(() => {
MockDate.reset();
return unloadFixtures(fixtures);
});
});
afterEach(() => {
MockDate.reset()
})
it('should return false if the transaction is not an health expense', () => {
afterEach(() => {
MockDate.reset()
})
after(function () {
MockDate.reset();
});
after(function (done) {
dbConnection.close();
MockDate.reset();
messagingQueue.disconnect();
require('./app').shutdown();
require('./lib/logger').resetToConsole();
setTimeout(done, 2000);
});
after(function () {
MockDate.reset();
config.reset();
});
afterEach(() => {
MockDate.reset()
})