mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
initialize stub
This commit is contained in:
parent
19c79ce510
commit
71936c1f0a
1 changed files with 8 additions and 0 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in a new issue