diff --git a/ghost/api-framework/lib/frame.js b/ghost/api-framework/lib/frame.js index 46dde5d6da..b91de8dc86 100644 --- a/ghost/api-framework/lib/frame.js +++ b/ghost/api-framework/lib/frame.js @@ -1,4 +1,4 @@ -const debug = require('@tryghost/debug')('api:shared:frame'); +const debug = require('@tryghost/debug')('frame'); const _ = require('lodash'); /** diff --git a/ghost/api-framework/lib/headers.js b/ghost/api-framework/lib/headers.js index 7147b2a1fe..fa99a9eeab 100644 --- a/ghost/api-framework/lib/headers.js +++ b/ghost/api-framework/lib/headers.js @@ -1,5 +1,5 @@ const url = require('url'); -const debug = require('@tryghost/debug')('api:shared:headers'); +const debug = require('@tryghost/debug')('headers'); const Promise = require('bluebird'); const INVALIDATE_ALL = '/*'; diff --git a/ghost/api-framework/lib/http.js b/ghost/api-framework/lib/http.js index d47aa85bb8..67a65fd114 100644 --- a/ghost/api-framework/lib/http.js +++ b/ghost/api-framework/lib/http.js @@ -1,5 +1,5 @@ const url = require('url'); -const debug = require('@tryghost/debug')('api:shared:http'); +const debug = require('@tryghost/debug')('http'); const Frame = require('./frame'); const headers = require('./headers'); diff --git a/ghost/api-framework/lib/pipeline.js b/ghost/api-framework/lib/pipeline.js index 14dd1365e0..f5300ae004 100644 --- a/ghost/api-framework/lib/pipeline.js +++ b/ghost/api-framework/lib/pipeline.js @@ -1,4 +1,4 @@ -const debug = require('@tryghost/debug')('api:shared:pipeline'); +const debug = require('@tryghost/debug')('pipeline'); const Promise = require('bluebird'); const _ = require('lodash'); const errors = require('@tryghost/errors'); diff --git a/ghost/api-framework/lib/serializers/handle.js b/ghost/api-framework/lib/serializers/handle.js index 39afa020ae..84766a72ec 100644 --- a/ghost/api-framework/lib/serializers/handle.js +++ b/ghost/api-framework/lib/serializers/handle.js @@ -1,4 +1,4 @@ -const debug = require('@tryghost/debug')('api:shared:serializers:handle'); +const debug = require('@tryghost/debug')('serializers:handle'); const Promise = require('bluebird'); const {sequence} = require('@tryghost/promise'); const errors = require('@tryghost/errors'); diff --git a/ghost/api-framework/lib/serializers/input/all.js b/ghost/api-framework/lib/serializers/input/all.js index a372dae279..4a2a0ddad4 100644 --- a/ghost/api-framework/lib/serializers/input/all.js +++ b/ghost/api-framework/lib/serializers/input/all.js @@ -1,4 +1,4 @@ -const debug = require('@tryghost/debug')('api:shared:serializers:input:all'); +const debug = require('@tryghost/debug')('serializers:input:all'); const _ = require('lodash'); const utils = require('../../utils'); diff --git a/ghost/api-framework/lib/validators/handle.js b/ghost/api-framework/lib/validators/handle.js index 27eb0da88b..670106c7ee 100644 --- a/ghost/api-framework/lib/validators/handle.js +++ b/ghost/api-framework/lib/validators/handle.js @@ -1,4 +1,4 @@ -const debug = require('@tryghost/debug')('api:shared:validators:handle'); +const debug = require('@tryghost/debug')('validators:handle'); const Promise = require('bluebird'); const errors = require('@tryghost/errors'); const {sequence} = require('@tryghost/promise'); diff --git a/ghost/api-framework/lib/validators/input/all.js b/ghost/api-framework/lib/validators/input/all.js index f6061d1c47..f2769c0b3d 100644 --- a/ghost/api-framework/lib/validators/input/all.js +++ b/ghost/api-framework/lib/validators/input/all.js @@ -1,4 +1,4 @@ -const debug = require('@tryghost/debug')('api:shared:validators:input:all'); +const debug = require('@tryghost/debug')('validators:input:all'); const _ = require('lodash'); const Promise = require('bluebird'); const tpl = require('@tryghost/tpl'); diff --git a/ghost/api-framework/test/frame.test.js b/ghost/api-framework/test/frame.test.js index bdbd645aa2..36e134497f 100644 --- a/ghost/api-framework/test/frame.test.js +++ b/ghost/api-framework/test/frame.test.js @@ -1,7 +1,7 @@ const should = require('should'); const shared = require('../'); -describe('Unit: api/shared/frame', function () { +describe('Frame', function () { it('constructor', function () { const frame = new shared.Frame(); Object.keys(frame).should.eql([ diff --git a/ghost/api-framework/test/headers.test.js b/ghost/api-framework/test/headers.test.js index ecdbf5c2d3..67336932b4 100644 --- a/ghost/api-framework/test/headers.test.js +++ b/ghost/api-framework/test/headers.test.js @@ -1,6 +1,6 @@ const shared = require('../'); -describe('Unit: api/shared/headers', function () { +describe('Headers', function () { it('empty headers config', function () { return shared.headers.get().then((result) => { result.should.eql({}); diff --git a/ghost/api-framework/test/http.test.js b/ghost/api-framework/test/http.test.js index 7de8495fde..bfb8b86b43 100644 --- a/ghost/api-framework/test/http.test.js +++ b/ghost/api-framework/test/http.test.js @@ -2,7 +2,7 @@ const should = require('should'); const sinon = require('sinon'); const shared = require('../'); -describe('Unit: api/shared/http', function () { +describe('HTTP', function () { let req; let res; let next; diff --git a/ghost/api-framework/test/pipeline.test.js b/ghost/api-framework/test/pipeline.test.js index 4f139d864e..0f6786cb7d 100644 --- a/ghost/api-framework/test/pipeline.test.js +++ b/ghost/api-framework/test/pipeline.test.js @@ -3,7 +3,7 @@ const should = require('should'); const sinon = require('sinon'); const shared = require('../'); -describe('Unit: api/shared/pipeline', function () { +describe('Pipeline', function () { afterEach(function () { sinon.restore(); }); diff --git a/ghost/api-framework/test/serializers/handle.test.js b/ghost/api-framework/test/serializers/handle.test.js index c00b364132..5c7344b117 100644 --- a/ghost/api-framework/test/serializers/handle.test.js +++ b/ghost/api-framework/test/serializers/handle.test.js @@ -3,7 +3,7 @@ const Promise = require('bluebird'); const sinon = require('sinon'); const shared = require('../../'); -describe('Unit: api/shared/serializers/handle', function () { +describe('serializers/handle', function () { afterEach(function () { sinon.restore(); }); diff --git a/ghost/api-framework/test/serializers/input/all.test.js b/ghost/api-framework/test/serializers/input/all.test.js index b24cefb9bb..8148f28074 100644 --- a/ghost/api-framework/test/serializers/input/all.test.js +++ b/ghost/api-framework/test/serializers/input/all.test.js @@ -1,7 +1,7 @@ const should = require('should'); const shared = require('../../../'); -describe('Unit: utils/serializers/input/all', function () { +describe('serializers/input/all', function () { describe('all', function () { it('transforms into model readable format', function () { const apiConfig = {}; diff --git a/ghost/api-framework/test/util/options.test.js b/ghost/api-framework/test/util/options.test.js index a2d10f5d0f..d9812a41ce 100644 --- a/ghost/api-framework/test/util/options.test.js +++ b/ghost/api-framework/test/util/options.test.js @@ -1,6 +1,6 @@ const optionsUtil = require('../../lib/utils/options'); -describe('Unit: api/shared/util/options', function () { +describe('util/options', function () { it('returns an array with empty string when no parameters are passed', function () { optionsUtil.trimAndLowerCase().should.eql(['']); }); diff --git a/ghost/api-framework/test/validators/handle.test.js b/ghost/api-framework/test/validators/handle.test.js index bf28a5ffb0..fa3df9a899 100644 --- a/ghost/api-framework/test/validators/handle.test.js +++ b/ghost/api-framework/test/validators/handle.test.js @@ -3,7 +3,7 @@ const Promise = require('bluebird'); const sinon = require('sinon'); const shared = require('../../'); -describe('Unit: api/shared/validators/handle', function () { +describe('validators/handle', function () { afterEach(function () { sinon.restore(); }); diff --git a/ghost/api-framework/test/validators/input/all.test.js b/ghost/api-framework/test/validators/input/all.test.js index 0f9a53169c..bd54c60bca 100644 --- a/ghost/api-framework/test/validators/input/all.test.js +++ b/ghost/api-framework/test/validators/input/all.test.js @@ -4,7 +4,7 @@ const sinon = require('sinon'); const Promise = require('bluebird'); const shared = require('../../../'); -describe('Unit: api/shared/validators/input/all', function () { +describe('validators/input/all', function () { afterEach(function () { sinon.restore(); });