mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 21:40:39 +03:00
Cleaned up some unused code in test fixtures
- the themeService.loadAll method was refactored out ages ago, so this clearly isn't used in tests - the rest are requires I spotted whilst working around the codebase - note: we have noUnusedVars disabled as a linting error in tests because else should complains everywhere
This commit is contained in:
parent
9614d71e1f
commit
1025600ae1
@ -6,7 +6,6 @@ const KnexMigrator = require('knex-migrator');
|
||||
const knexMigrator = new KnexMigrator();
|
||||
|
||||
// Ghost Internals
|
||||
const {events} = require('../../core/server/lib/common');
|
||||
const config = require('../../core/shared/config');
|
||||
const db = require('../../core/server/data/db');
|
||||
const schema = require('../../core/server/data/schema').tables;
|
||||
|
@ -15,7 +15,6 @@ const emailAnalyticsService = require('../../core/server/services/email-analytic
|
||||
const permissions = require('../../core/server/services/permissions');
|
||||
const settingsService = require('../../core/server/services/settings');
|
||||
const settingsCache = require('../../core/server/services/settings/cache');
|
||||
const themeService = require('../../core/frontend/services/themes');
|
||||
|
||||
// Other Test Utilities
|
||||
const context = require('./fixtures/context');
|
||||
@ -595,9 +594,6 @@ const toDoList = {
|
||||
invites: function insertInvites() {
|
||||
return fixtures.insertInvites();
|
||||
},
|
||||
themes: function loadThemes() {
|
||||
return themeService.loadAll();
|
||||
},
|
||||
webhooks: function insertWebhooks() {
|
||||
return fixtures.insertWebhooks();
|
||||
},
|
||||
|
@ -14,10 +14,8 @@ const knexMigrator = new KnexMigrator();
|
||||
// Ghost Internals
|
||||
const config = require('../../core/shared/config');
|
||||
const boot = require('../../core/boot');
|
||||
const {events} = require('../../core/server/lib/common');
|
||||
const db = require('../../core/server/data/db');
|
||||
const models = require('../../core/server/models');
|
||||
const notify = require('../../core/server/notify');
|
||||
const urlService = require('../../core/frontend/services/url');
|
||||
const settingsService = require('../../core/server/services/settings');
|
||||
const frontendSettingsService = require('../../core/frontend/services/settings');
|
||||
|
Loading…
Reference in New Issue
Block a user