mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 11:46:23 +00:00
initialize stub
This commit is contained in:
parent
11c5b26c59
commit
4da2ed4a1f
1 changed files with 8 additions and 0 deletions
|
|
@ -13,6 +13,14 @@ describe('POST /debug/jump-time', () => {
|
||||||
today = new Date();
|
today = new Date();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
nconfStub = sandbox.stub(nconf, 'get');
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(() => {
|
||||||
|
nconfStub.restore();
|
||||||
|
});
|
||||||
|
|
||||||
after(async () => {
|
after(async () => {
|
||||||
nconf.set('TIME_TRAVEL_ENABLED', true);
|
nconf.set('TIME_TRAVEL_ENABLED', true);
|
||||||
await user.post('/debug/jump-time', { disable: true });
|
await user.post('/debug/jump-time', { disable: true });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue