initialize stub

This commit is contained in:
Phillip Thelen 2024-06-19 18:10:07 +02:00
parent 19c79ce510
commit 71936c1f0a

View file

@ -13,6 +13,14 @@ describe('POST /debug/jump-time', () => {
today = new Date();
});
beforeEach(() => {
nconfStub = sandbox.stub(nconf, 'get');
});
afterEach(() => {
nconfStub.restore();
});
after(async () => {
nconf.set('TIME_TRAVEL_ENABLED', true);
await user.post('/debug/jump-time', { disable: true });