fix debug tests

This commit is contained in:
Phillip Thelen
2024-06-19 17:30:37 +02:00
parent 5d5275ce70
commit db41e00990
8 changed files with 8 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ describe('POST /debug/jump-time', () => {
});
it('returns error when not in time travel mode', async () => {
nconf.set('TIME_TRAVEL_ENABLED', false);
sandbox.stub(nconf, 'get').withArgs('TIME_TRAVEL_ENABLED').returns(false);
await expect(user.post('/debug/jump-time', { offsetDays: 1 }))
.eventually.be.rejected.and.to.deep.equal({