Commit 0d2fc7b7 authored by Rik Smith-Unna's avatar Rik Smith-Unna
Browse files

Refer to pubsweet-cli instead of pubsweet

parent 10c53951
Pipeline #1088 failed with stage
in 1 minute and 19 seconds
......@@ -27,7 +27,7 @@ const describeAction = actions => (key, opts, cb) => {
secondarg: empty,
types: {},
properties: {},
user: require.requireActual('pubsweet/test/fixtures').adminUser
user: require.requireActual('pubsweet-cli/test/fixtures').adminUser
})
describe(key, () => {
......
......@@ -2,7 +2,7 @@ const fs = require('fs')
const path = require('path')
const mockdatafile = path.join(__dirname, 'mockapp.json')
const startnewapp = require('pubsweet/test/helpers/startnewapp')
const startnewapp = require('pubsweet-cli/test/helpers/startnewapp')
startnewapp().then(
_app => {
......
const spawn = require('child-process').spawn
const path = require('path')
module.exports = () => require('pubsweet/test/helpers/working_dir')(
module.exports = () => require('pubsweet-cli/test/helpers/working_dir')(
).then(
dir => require('pubsweet/src/generate-config')()
dir => require('pubsweet-cli/src/generate-config')()
).then(
require('pubsweet/src/generate-env')
require('pubsweet-cli/src/generate-env')
).then(
() => require('pubsweet/src/initial-app')('someapp')
() => require('pubsweet-cli/src/initial-app')('someapp')
).then(
require('pubsweet/src/setup-db')({
properties: require('pubsweet/src/db-properties'),
override: require('pubsweet/test/fixtures').dbconfig
require('pubsweet-cli/src/setup-db')({
properties: require('pubsweet-cli/src/db-properties'),
override: require('pubsweet-cli/test/fixtures').dbconfig
})
).then(
dbsetup => new Promise(
......@@ -31,7 +31,7 @@ module.exports = () => require('pubsweet/test/helpers/working_dir')(
)
).then(
dbsetup => new Promise(
resolve => require('pubsweet/test/src/start')(server => {
resolve => require('pubsweet-cli/test/src/start')(server => {
resolve({
server: server,
user: dbsetup.user,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment