mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Removed unnecessary load of settings
- seems to save about a second locally for me - I'll take it!
This commit is contained in:
parent
cc9e256b36
commit
79233b1181
3 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ const importOptions = {
|
||||||
|
|
||||||
describe('Importer Legacy', function () {
|
describe('Importer Legacy', function () {
|
||||||
beforeEach(testUtils.teardownDb);
|
beforeEach(testUtils.teardownDb);
|
||||||
beforeEach(testUtils.setup('roles', 'owner', 'settings'));
|
beforeEach(testUtils.setup('roles', 'owner'));
|
||||||
|
|
||||||
it('disallows importing Legacy imports', function () {
|
it('disallows importing Legacy imports', function () {
|
||||||
const exportData = exportedBodyLegacy().db[0];
|
const exportData = exportedBodyLegacy().db[0];
|
||||||
|
|
|
@ -11,7 +11,7 @@ const importOptions = {
|
||||||
|
|
||||||
describe('Importer 1.0', function () {
|
describe('Importer 1.0', function () {
|
||||||
beforeEach(testUtils.teardownDb);
|
beforeEach(testUtils.teardownDb);
|
||||||
beforeEach(testUtils.setup('roles', 'owner', 'settings'));
|
beforeEach(testUtils.setup('roles', 'owner'));
|
||||||
|
|
||||||
it('ensure amp field get\'s respected', function () {
|
it('ensure amp field get\'s respected', function () {
|
||||||
const exportData = exportedBodyV1().db[0];
|
const exportData = exportedBodyV1().db[0];
|
||||||
|
|
|
@ -37,7 +37,7 @@ describe('Importer', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Empty database (except of owner user), general tests', function () {
|
describe('Empty database (except of owner user), general tests', function () {
|
||||||
beforeEach(testUtils.setup('roles', 'owner', 'settings'));
|
beforeEach(testUtils.setup('roles', 'owner'));
|
||||||
|
|
||||||
it('ensure return structure', function () {
|
it('ensure return structure', function () {
|
||||||
let exportData;
|
let exportData;
|
||||||
|
@ -1226,7 +1226,7 @@ describe('Importer', function () {
|
||||||
|
|
||||||
describe('Existing database', function () {
|
describe('Existing database', function () {
|
||||||
beforeEach(testUtils.teardownDb);
|
beforeEach(testUtils.teardownDb);
|
||||||
beforeEach(testUtils.setup('users:roles', 'posts', 'settings'));
|
beforeEach(testUtils.setup('users:roles', 'posts'));
|
||||||
|
|
||||||
it('import multiple users, tags, posts', function () {
|
it('import multiple users, tags, posts', function () {
|
||||||
const exportData = exportedBodyV2().db[0];
|
const exportData = exportedBodyV2().db[0];
|
||||||
|
|
Loading…
Add table
Reference in a new issue