Commit 86b25df2 authored by Giannis Kopanas's avatar Giannis Kopanas

fix(warings): clear unsued code

parent 25b789e9
Pipeline #8370 passed with stages
in 5 minutes and 58 seconds
......@@ -6,8 +6,6 @@ import { login, dashboard } from './pageObjects'
const config = require('config')
const fixtures = require('pubsweet-server/test/fixtures/fixtures')
const goodInkConfig = {
inkEndpoint: 'http://inkdemo-api.coko.foundation/',
email: 'editoria@coko.foundation',
......
export const collection = {
type: 'collection',
title: 'This is a dummy document for testing purposes',
owners: ['f34e6a7f-d078-4bcc-a45d-15b20ca06acf'],
status: 'submitted',
created: 1528544237670,
fragments: [
//"af967b77-b860-4e57-bd3c-dd1cf3373003"
fragment,
],
}
export const fragment = {
type: 'fragment',
files: {
......@@ -63,3 +51,15 @@ export const fragment = {
},
fragmentType: 'version',
}
export const collection = {
type: 'collection',
title: 'This is a dummy document for testing purposes',
owners: ['f34e6a7f-d078-4bcc-a45d-15b20ca06acf'],
status: 'submitted',
created: 1528544237670,
fragments: [
// "af967b77-b860-4e57-bd3c-dd1cf3373003"
fragment,
],
}
import faker from 'faker'
import DestinationRequest from 'testcafe-hammerhead/lib/request-pipeline/destination-request'
import start from 'pubsweet/src/startup/start'
import {
addUser,
createTables,
dbExists,
addCollection,
} from '@pubsweet/db-manager'
import testSubmission3 from './fixtures/testSubmission4'
import testSubmission4 from './fixtures/testSubmision4'
import { addUser, createTables } from '@pubsweet/db-manager'
let server
......@@ -35,20 +28,4 @@ export async function setup(user) {
return { userData }
}
export async function setupSubmittedManuscript() {
if (dbExists) {
const collection = testSubmission3.collection
const fragment = testSubmission4.fragment
}
}
export async function setupTwoSubmittedManuscripts() {
//set up first manuscript
setupSubmittedManuscript()
//set up second manuscript
const collection = testSubmission4.collection
const fragment = testSubmission4.fragment
}
export function teardown() {}
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