From d1a18a185a4d7d32053941a72c925f8bc3d08709 Mon Sep 17 00:00:00 2001
From: john <johnbarlas39@gmail.com>
Date: Sat, 28 Jan 2017 22:04:21 +0200
Subject: [PATCH] cleanup

---
 .../BookBuilder/test/BookBuilderModal.spec.js       |  4 ++--
 test/dataMock.js                                    |  4 ++--
 webpack/babel-includes.js                           | 13 -------------
 3 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/app/components/BookBuilder/test/BookBuilderModal.spec.js b/app/components/BookBuilder/test/BookBuilderModal.spec.js
index 5545702..c16b0e1 100644
--- a/app/components/BookBuilder/test/BookBuilderModal.spec.js
+++ b/app/components/BookBuilder/test/BookBuilderModal.spec.js
@@ -1,5 +1,5 @@
-import React from 'react'
-import { shallow } from 'enzyme'
+// import React from 'react'
+// import { shallow } from 'enzyme'
 // import expect from 'expect.js'
 // import { Modal } from 'react-bootstrap'
 // import sinon from 'sinon'
diff --git a/test/dataMock.js b/test/dataMock.js
index bc8c181..76c51f1 100644
--- a/test/dataMock.js
+++ b/test/dataMock.js
@@ -150,6 +150,8 @@ const chapters = [
   }
 ]
 
+const teams = []
+
 const user = {
   teams: [],
   username: 'test-user'
@@ -159,8 +161,6 @@ const users = [
   user
 ]
 
-const teams = []
-
 export {
   book,
   chapters,
diff --git a/webpack/babel-includes.js b/webpack/babel-includes.js
index d6fb06b..c459384 100644
--- a/webpack/babel-includes.js
+++ b/webpack/babel-includes.js
@@ -1,5 +1,4 @@
 const path = require('path')
-// const fs = require('fs')
 
 var babelIncludes = [
   new RegExp(path.join(__dirname, '../node_modules/pubsweet-frontend/src')),
@@ -7,16 +6,4 @@ var babelIncludes = [
   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
-- 
GitLab