Changed require declaration to be more readable

no issue

-  When adding more methods under test to this file the require statement will becom difficult to read in one long line. Multiline statement is way nicer to track in git history too
This commit is contained in:
Naz 2022-04-08 11:24:03 +08:00
parent cca620cb35
commit d81accdebf

View File

@ -2,7 +2,13 @@
// const testUtils = require('./utils');
require('./utils');
const {InternalServerError} = require('@tryghost/errors');
const {prepareError, handleJSONResponse, handleJSONResponseV2, handleHTMLResponse, prepareStack} = require('../');
const {
prepareError,
handleJSONResponse,
handleJSONResponseV2,
handleHTMLResponse,
prepareStack
} = require('../');
describe('Prepare Error', function () {
it('Correctly prepares a normal error', function (done) {