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');
require('./utils');
const Cache = require('../lib/cache');
const {Cache} = require('../');
describe('Cache', function () {
describe('populate()', function () {

View File

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