diff --git a/api/test/awardings.spec.js b/api/test/awardings.spec.js index b9ee4ed..10c0206 100644 --- a/api/test/awardings.spec.js +++ b/api/test/awardings.spec.js @@ -8,6 +8,9 @@ let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); +// chai methods +require('chai').should(); + chai.use(chaiHttp); // Our parent block describe('Awardings', () => { diff --git a/api/test/command.spec.js b/api/test/command.spec.js index 27ee475..2552fc8 100644 --- a/api/test/command.spec.js +++ b/api/test/command.spec.js @@ -8,6 +8,9 @@ let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); +// chai methods +require('chai').should(); + chai.use(chaiHttp); // Our parent block describe('Command', () => { diff --git a/api/test/content-tool/user-db-item-creator.js b/api/test/content-tool/user-db-item-creator.js index 27035a1..6e5e184 100644 --- a/api/test/content-tool/user-db-item-creator.js +++ b/api/test/content-tool/user-db-item-creator.js @@ -36,7 +36,7 @@ for (let i = 0; i < quantity; i++) { username: createString('abcdefghijklmnopqrstuvwxyz0123456789', 10), squadId: squadId, rankLvl: Math.floor(Math.random() * 22), - }, function(err, user) { + }, (err, user) => { if (err) { console.log(err); } else { @@ -47,7 +47,7 @@ for (let i = 0; i < quantity; i++) { // If the Node process ends, close the Mongoose connection process.on('SIGINT', () => { - mongoose.connection.close(function() { + mongoose.connection.close(() => { console.log('Mongoose default connection disconnected through app termination'); process.exit(0); }); diff --git a/api/test/decorations.spec.js b/api/test/decorations.spec.js index a08a6e2..84e7cc9 100644 --- a/api/test/decorations.spec.js +++ b/api/test/decorations.spec.js @@ -8,6 +8,9 @@ let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); +// chai methods +require('chai').should(); + chai.use(chaiHttp); // Our parent block describe('Decorations', () => { diff --git a/api/test/ranks.spec.js b/api/test/ranks.spec.js index 638e764..2518561 100644 --- a/api/test/ranks.spec.js +++ b/api/test/ranks.spec.js @@ -8,6 +8,9 @@ let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); +// chai methods +require('chai').should(); + chai.use(chaiHttp); // Our parent block describe('Ranks', () => { diff --git a/api/test/squads.spec.js b/api/test/squads.spec.js index efbebf4..cf776b8 100644 --- a/api/test/squads.spec.js +++ b/api/test/squads.spec.js @@ -8,6 +8,9 @@ let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); +// chai methods +require('chai').should(); + chai.use(chaiHttp); // Our parent block describe('Squads', () => { diff --git a/api/test/users.spec.js b/api/test/users.spec.js index b43332c..66ab3f5 100644 --- a/api/test/users.spec.js +++ b/api/test/users.spec.js @@ -8,6 +8,9 @@ let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); +// chai methods +require('chai').should(); + chai.use(chaiHttp); // Our parent block describe('Users', () => { diff --git a/api/test/wars.spec.js b/api/test/wars.spec.js index 147b796..4a164e8 100644 --- a/api/test/wars.spec.js +++ b/api/test/wars.spec.js @@ -7,6 +7,9 @@ let chai = require('chai'); let chaiHttp = require('chai-http'); let server = require('../server'); +// chai methods +require('chai').should(); + chai.use(chaiHttp); // Our parent block describe('Wars', () => {