mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-26 04:08:01 +03: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:
parent
e0a12166fc
commit
d3930b50ef
@ -2,7 +2,7 @@
|
||||
// const testUtils = require('./utils');
|
||||
require('./utils');
|
||||
|
||||
const Cache = require('../lib/cache');
|
||||
const {Cache} = require('../');
|
||||
|
||||
describe('Cache', function () {
|
||||
describe('populate()', function () {
|
||||
|
@ -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, {
|
||||
|
Loading…
Reference in New Issue
Block a user