initialize stub

This commit is contained in:
Phillip Thelen 2024-06-19 18:10:07 +02:00
parent 11c5b26c59
commit 4da2ed4a1f

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 });