diff --git a/.eslintrc b/.eslintrc index ca84eb4..749900f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,5 @@ extends: -- "homeoffice/config/default" + - lennym env: es6: true diff --git a/.mocharc.js b/.mocharc.js new file mode 100644 index 0000000..8ab7b18 --- /dev/null +++ b/.mocharc.js @@ -0,0 +1,7 @@ +module.exports = { + forbidOnly: !!process.env.CI, + exit: true, + recursive: true, + timeout: 5000, + require: 'dotenv/config' +}; diff --git a/test/.eslintrc b/test/.eslintrc index b742589..ee87217 100644 --- a/test/.eslintrc +++ b/test/.eslintrc @@ -1,9 +1,12 @@ extends: - - '../.eslintrc' - - 'homeoffice/config/testing' + - ../.eslintrc env: es6: true + mocha: true globals: assert: true + +rules: + implicit-dependencies/no-implicit: [2, { dev: true }] diff --git a/test/common.js b/test/common.js deleted file mode 100644 index 50d0bf4..0000000 --- a/test/common.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -global.assert = require('assert'); -global.sinon = require('sinon'); - -process.setMaxListeners(0); -process.stdout.setMaxListeners(0); diff --git a/test/mocha.opts b/test/mocha.opts deleted file mode 100644 index 1123ac1..0000000 --- a/test/mocha.opts +++ /dev/null @@ -1,4 +0,0 @@ ---require test/common.js ---recursive ---reporter spec ---exit \ No newline at end of file