From d3930b50ef2d1e8446a2d7fae8cc6580f51e3238 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 20 Jul 2022 17:47:23 +0200 Subject: [PATCH] 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 --- ghost/custom-theme-settings-service/test/cache.test.js | 2 +- ghost/custom-theme-settings-service/test/service.test.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ghost/custom-theme-settings-service/test/cache.test.js b/ghost/custom-theme-settings-service/test/cache.test.js index a0e2d904b7..955864f49c 100644 --- a/ghost/custom-theme-settings-service/test/cache.test.js +++ b/ghost/custom-theme-settings-service/test/cache.test.js @@ -2,7 +2,7 @@ // const testUtils = require('./utils'); require('./utils'); -const Cache = require('../lib/cache'); +const {Cache} = require('../'); describe('Cache', function () { describe('populate()', function () { diff --git a/ghost/custom-theme-settings-service/test/service.test.js b/ghost/custom-theme-settings-service/test/service.test.js index 16520c2cdd..897281a5ff 100644 --- a/ghost/custom-theme-settings-service/test/service.test.js +++ b/ghost/custom-theme-settings-service/test/service.test.js @@ -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, {