Commit e6e5282b authored by Alexandros Georgantas's avatar Alexandros Georgantas

chore: corrections for linter

parent 05198e21
const book = {
id: '0',
title: 'Test Book'
title: 'Test Book',
}
const chapters = [
{
alignment: {
left: false,
right: false
right: false,
},
author: '',
book: book.id,
......@@ -20,18 +20,18 @@ const chapters = [
style: 0,
edit: 0,
review: 0,
clean: 0
clean: 0,
},
source: '',
status: 'unpublished',
subCategory: 'component',
title: 'Preface',
trackChanges: false
trackChanges: false,
},
{
alignment: {
left: false,
right: false
right: false,
},
author: '',
book: book.id,
......@@ -44,18 +44,18 @@ const chapters = [
style: 0,
edit: 0,
review: 0,
clean: 0
clean: 0,
},
source: '',
status: 'unpublished',
subCategory: 'component',
title: 'Introduction',
trackChanges: false
trackChanges: false,
},
{
alignment: {
left: false,
right: false
right: false,
},
author: '',
book: book.id,
......@@ -68,18 +68,18 @@ const chapters = [
style: 0,
edit: 0,
review: 0,
clean: 0
clean: 0,
},
source: '',
status: 'unpublished',
subCategory: 'chapter',
title: 'Chapter One',
trackChanges: false
trackChanges: false,
},
{
alignment: {
left: false,
right: false
right: false,
},
author: '',
book: book.id,
......@@ -92,18 +92,18 @@ const chapters = [
style: 0,
edit: 0,
review: 0,
clean: 0
clean: 0,
},
source: '',
status: 'unpublished',
subCategory: 'chapter',
title: 'Chapter Two',
trackChanges: false
trackChanges: false,
},
{
alignment: {
left: false,
right: false
right: false,
},
author: '',
book: book.id,
......@@ -116,18 +116,18 @@ const chapters = [
style: 0,
edit: 0,
review: 0,
clean: 0
clean: 0,
},
source: '',
status: 'unpublished',
subCategory: 'component',
title: 'Preface',
trackChanges: false
trackChanges: false,
},
{
alignment: {
left: false,
right: false
right: false,
},
author: '',
book: book.id,
......@@ -140,31 +140,23 @@ const chapters = [
style: 0,
edit: 0,
review: 0,
clean: 0
clean: 0,
},
source: '',
status: 'unpublished',
subCategory: 'component',
title: 'Preface',
trackChanges: false
}
trackChanges: false,
},
]
const teams = []
const user = {
teams: [],
username: 'test-user'
username: 'test-user',
}
const users = [
user
]
const users = [user]
export {
book,
chapters,
teams,
user,
users
}
export { book, chapters, teams, user, users }
/* eslint-disable */
global.CONFIG = { 'pubsweet-server': '' }
global.PUBSWEET_COMPONENTS = []
global.mock = {
data: require('./dataMock'),
redux: require('./reduxMock')
redux: require('./reduxMock'),
}
......@@ -9,7 +9,7 @@ const actions = {
getTeams: sinon.stub().resolves(teams),
getUsers: sinon.stub().resolves(users),
ink: sinon.spy(),
updateFragment: sinon.spy()
updateFragment: sinon.spy(),
}
module.exports = { actions }
/* eslint-disable global-require */
const include = require('./babel-includes')
const path = require('path')
const stringReplaceRule = require('./string-replace')
......
/* eslint-disable global-require */
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const include = require('./babel-includes')
const path = require('path')
......
/* eslint-disable global-require */
// replace "PUBSWEET_COMPONENTS" string in pubsweet-client
const components = require('../config/components.json')
......
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