From 341b2bb6044d1682457bc326ed1211c705086b3c Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 12 Mar 2021 18:26:53 +1300 Subject: [PATCH] Moved importer utils to general exporter utils refs https://github.com/TryGhost/Team/issues/555 - Check previous commit for more context. This changeset is part of importer/exporter cleanup effort. --- test/regression/importer/importer_spec.js | 2 +- test/regression/importer/lts_spec.js | 2 +- test/regression/importer/v1_spec.js | 2 +- .../fixtures.js => utils/fixtures/export/body-generator.js} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename test/{regression/importer/utils/fixtures.js => utils/fixtures/export/body-generator.js} (100%) diff --git a/test/regression/importer/importer_spec.js b/test/regression/importer/importer_spec.js index 5d23d2887b..a868842922 100644 --- a/test/regression/importer/importer_spec.js +++ b/test/regression/importer/importer_spec.js @@ -21,7 +21,7 @@ const importOptions = { const knex = db.knex; -const {exportedLatestBody} = require('./utils/fixtures'); +const {exportedLatestBody} = require('../../utils/fixtures/export/body-generator'); // Tests in here do an import for each test describe('Integration: Importer', function () { diff --git a/test/regression/importer/lts_spec.js b/test/regression/importer/lts_spec.js index 9fe856d28f..0fecc15fc4 100644 --- a/test/regression/importer/lts_spec.js +++ b/test/regression/importer/lts_spec.js @@ -2,7 +2,7 @@ const testUtils = require('../../utils'); const importer = require('../../../core/server/data/importer'); const dataImporter = importer.importers[1]; -const {exportedLegacyBody} = require('./utils/fixtures'); +const {exportedLegacyBody} = require('../../utils/fixtures/export/body-generator'); const importOptions = { returnImportedData: true diff --git a/test/regression/importer/v1_spec.js b/test/regression/importer/v1_spec.js index cd47a61819..ef27ab011e 100644 --- a/test/regression/importer/v1_spec.js +++ b/test/regression/importer/v1_spec.js @@ -1,5 +1,5 @@ const testUtils = require('../../utils'); -const {exportedPreviousBody} = require('./utils/fixtures'); +const {exportedPreviousBody} = require('../../utils/fixtures/export/body-generator'); const models = require('../../../core/server/models'); const importer = require('../../../core/server/data/importer'); diff --git a/test/regression/importer/utils/fixtures.js b/test/utils/fixtures/export/body-generator.js similarity index 100% rename from test/regression/importer/utils/fixtures.js rename to test/utils/fixtures/export/body-generator.js