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:
parent
e0a12166fc
commit
d3930b50ef
2 changed files with 2 additions and 3 deletions
|
@ -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 () {
|
||||||
|
|
|
@ -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, {
|
||||||
|
|
Loading…
Reference in a new issue