0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Reworked imports for custom-theme-settings-service tests

- now they import from the package exports, we get a slight boost in
  coverage because `index.js` is now used
This commit is contained in:
Daniel Lockyer 2022-07-20 17:47:23 +02:00
parent e0a12166fc
commit d3930b50ef
No known key found for this signature in database
GPG key ID: D21186F0B47295AD
2 changed files with 2 additions and 3 deletions

View file

@ -2,7 +2,7 @@
// const testUtils = require('./utils'); // const testUtils = require('./utils');
require('./utils'); require('./utils');
const Cache = require('../lib/cache'); const {Cache} = require('../');
describe('Cache', function () { describe('Cache', function () {
describe('populate()', function () { describe('populate()', function () {

View file

@ -7,8 +7,7 @@ const sinon = require('sinon');
const {ValidationError} = require('@tryghost/errors'); const {ValidationError} = require('@tryghost/errors');
const nql = require('@nexes/nql-lang'); const nql = require('@nexes/nql-lang');
const Service = require('../lib/service'); const {Cache, Service} = require('../');
const Cache = require('../lib/cache');
function makeModelInstance(data) { function makeModelInstance(data) {
const instance = Object.assign({}, data, { const instance = Object.assign({}, data, {