mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 13:17:24 +01:00
* Issue 10209 - Remove read usages of zone * Issue 10209 - Add coverage on daysSince and startOfDay cron utility functions * Issue 10209 - Add unit test for daysUserHasMissed method * Issue 10209 - Remove usages of deprecated `moment.js#zone` method. * Issue 10209 - Add helper function to centralise logic Also simplify timezoneOffsetToUtc function in site.vue * Issue 10209 - Also add getUtcOffset as method on user Co-authored-by: Matteo Pagliazzi <matteopagliazzi@gmail.com>
25 lines
693 B
JavaScript
25 lines
693 B
JavaScript
/* eslint-disable import/no-commonjs */
|
|
/* eslint-disable no-undef */
|
|
/* eslint-disable global-require */
|
|
/* eslint-disable no-process-env */
|
|
|
|
//------------------------------
|
|
// Global modules
|
|
//------------------------------
|
|
global._ = require('lodash');
|
|
global.chai = require('chai');
|
|
chai.use(require('chai-as-promised'));
|
|
chai.use(require('chai-moment'));
|
|
chai.use(require('sinon-chai'));
|
|
|
|
global.expect = chai.expect;
|
|
global.sinon = require('sinon');
|
|
const sinonStubPromise = require('sinon-stub-promise');
|
|
|
|
sinonStubPromise(global.sinon);
|
|
global.sandbox = sinon.createSandbox();
|
|
|
|
const setupNconf = require('../../website/server/libs/setupNconf');
|
|
|
|
setupNconf('./config.json.example');
|