0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added eslint exceptions in test-suite

no issue

- eslint-plugin-ghost will warn for console.* calls
- we use a mini-hack in the test suite to print out the start time for
  Ghost
- we want to keep these for the mean time, so explicitly allow them for
  now
This commit is contained in:
Daniel Lockyer 2020-04-23 09:15:22 +01:00
parent d4cd996e20
commit 0e4dbc659c

View file

@ -765,7 +765,7 @@ var ghostServer;
* @TODO: tidy up the tmp folders
*/
startGhost = function startGhost(options) {
console.time('Start Ghost');
console.time('Start Ghost'); // eslint-disable-line no-console
options = _.merge({
redirectsFile: true,
forceStart: false,
@ -868,7 +868,7 @@ startGhost = function startGhost(options) {
})
.then((keys) => {
module.exports.existingData.apiKeys = keys.toJSON(module.exports.context.internal);
console.timeEnd('Start Ghost');
console.timeEnd('Start Ghost'); // eslint-disable-line no-console
})
.return(ghostServer);
});
@ -950,7 +950,7 @@ startGhost = function startGhost(options) {
})
.then((keys) => {
module.exports.existingData.apiKeys = keys.toJSON();
console.timeEnd('Start Ghost');
console.timeEnd('Start Ghost'); // eslint-disable-line no-console
})
.return(ghostServer);
});