Skip to content

Commit

Permalink
😒 config without clone
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnath committed Aug 29, 2016
1 parent c6e2883 commit 26aa8e7
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions config/test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
'use strict';

const _ = require('lodash');
const path = require('path');

const defaultCfg = require('./default');

const content = _.cloneDeep(defaultCfg.content);

let knex = {};

if (process.env.CI === 'true') {
Expand All @@ -22,13 +19,11 @@ if (process.env.CI === 'true') {
};
}

content.directory = path.join(__dirname, '../tests/fixtures/content-types/good');
defaultCfg.content.directory = path.join(__dirname, '../tests/fixtures/content-types/good');
defaultCfg.workflows.directory = path.join(__dirname, '../tests/fixtures/workflows/good');

module.exports = {
content,
content: defaultCfg.content,
knex,
workflows: {
default: 'self-publish',
directory: path.join(__dirname, '../tests/fixtures/workflows/good'),
},
workflows: defaultCfg.workflows,
};

0 comments on commit 26aa8e7

Please sign in to comment.