mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
Add nconf setup to unit test helper
This commit is contained in:
@@ -8,5 +8,9 @@ global.sinon = require("sinon");
|
||||
chai.use(require("sinon-chai"))
|
||||
chai.use(require("chai-as-promised"));
|
||||
global.expect = chai.expect
|
||||
|
||||
global.sandbox = sinon.sandbox.create();
|
||||
|
||||
//------------------------------
|
||||
// Load nconf for unit tests
|
||||
//------------------------------
|
||||
require('../../website/src/libs/api-v3/setupNconf')();
|
||||
|
||||
Reference in New Issue
Block a user