Skip to content
Snippets Groups Projects
Commit d1a18a18 authored by john's avatar john
Browse files

cleanup

parent 594bf9c0
No related branches found
No related tags found
No related merge requests found
import React from 'react' // import React from 'react'
import { shallow } from 'enzyme' // import { shallow } from 'enzyme'
// import expect from 'expect.js' // import expect from 'expect.js'
// import { Modal } from 'react-bootstrap' // import { Modal } from 'react-bootstrap'
// import sinon from 'sinon' // import sinon from 'sinon'
......
...@@ -150,6 +150,8 @@ const chapters = [ ...@@ -150,6 +150,8 @@ const chapters = [
} }
] ]
const teams = []
const user = { const user = {
teams: [], teams: [],
username: 'test-user' username: 'test-user'
...@@ -159,8 +161,6 @@ const users = [ ...@@ -159,8 +161,6 @@ const users = [
user user
] ]
const teams = []
export { export {
book, book,
chapters, chapters,
......
const path = require('path') const path = require('path')
// const fs = require('fs')
var babelIncludes = [ var babelIncludes = [
new RegExp(path.join(__dirname, '../node_modules/pubsweet-frontend/src')), new RegExp(path.join(__dirname, '../node_modules/pubsweet-frontend/src')),
...@@ -7,16 +6,4 @@ var babelIncludes = [ ...@@ -7,16 +6,4 @@ var babelIncludes = [
new RegExp(path.join(__dirname, '../node_modules/pubsweet-.*')) new RegExp(path.join(__dirname, '../node_modules/pubsweet-.*'))
] ]
// let componentsDir = path.resolve(__dirname, '..', 'node_modules')
// let componentsRegex = new RegExp(path.join(__dirname, '../node_modules/pubsweet-.*'))
//
// let symlinkedComponents = fs.readdirSync(componentsDir).map(file => {
// return path.resolve(componentsDir, file)
// }).filter(file => {
// return fs.lstatSync(file).isSymbolicLink() && componentsRegex.test(file)
// }).map(function (componentSymlink) {
// return new RegExp(path.join(fs.realpathSync(componentSymlink), '(?!node_modules)'))
// })
// module.exports = babelIncludes.concat(symlinkedComponents)
module.exports = babelIncludes module.exports = babelIncludes
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