diff --git a/src/protractor/config.js b/src/protractor/config.js index 58cb97e2..df796aeb 100644 --- a/src/protractor/config.js +++ b/src/protractor/config.js @@ -1,6 +1,6 @@ /* global browser */ const path = require('path'); -const { getIPaddress, httpServer, logSeleniumNodeInfo } = require('../utils'); +const { getIPaddress, httpServer, logSeleniumNodeInfo } = require('./utils'); const reporterPath = path.resolve(__dirname, './plugins/reporter/index.js'); const screenshoterPath = path.resolve(__dirname, './plugins/screenshoter/index.js'); diff --git a/src/utils.js b/src/protractor/utils.js similarity index 100% rename from src/utils.js rename to src/protractor/utils.js diff --git a/test/unit/plugins/reporter/create-static.spec.js b/test/unit/plugins/reporter/create-static.spec.js index 1fe06c6c..2f8cd70c 100644 --- a/test/unit/plugins/reporter/create-static.spec.js +++ b/test/unit/plugins/reporter/create-static.spec.js @@ -1,5 +1,5 @@ const fs = require('fs'); -const report = require('../../../../src/plugins/reporter/create-static'); +const report = require('../../../../src/protractor/plugins/reporter/create-static'); describe('Reporter create-static', () => { let sandbox; diff --git a/test/unit/plugins/reporter/index.spec.js b/test/unit/plugins/reporter/index.spec.js index 2e729fac..24225bb8 100644 --- a/test/unit/plugins/reporter/index.spec.js +++ b/test/unit/plugins/reporter/index.spec.js @@ -2,8 +2,8 @@ const Promise = require('bluebird'); const fs = require('fs'); const mocha = require('mocha'); const mkdirp = require('mkdirp'); -const uiReport = require('../../../../src/plugins/reporter/index'); -const utils = require('../../../../src/plugins/reporter/utils'); +const uiReport = require('../../../../src/protractor/plugins/reporter/index'); +const utils = require('../../../../src/protractor/plugins/reporter/utils'); describe('Reporter index', () => { let sandbox; diff --git a/test/unit/plugins/reporter/utils.spec.js b/test/unit/plugins/reporter/utils.spec.js index a7d9d035..9d0f79b7 100644 --- a/test/unit/plugins/reporter/utils.spec.js +++ b/test/unit/plugins/reporter/utils.spec.js @@ -1,7 +1,7 @@ const path = require('path'); const fs = require('fs'); const mkdirp = require('mkdirp'); -const utils = require('../../../../src/plugins/reporter/utils'); +const utils = require('../../../../src/protractor/plugins/reporter/utils'); describe('Reporter Utils', () => { let sandbox; diff --git a/test/unit/plugins/screenshoter/index.spec.js b/test/unit/plugins/screenshoter/index.spec.js index 4fe029a1..61fae7fa 100644 --- a/test/unit/plugins/screenshoter/index.spec.js +++ b/test/unit/plugins/screenshoter/index.spec.js @@ -1,4 +1,4 @@ -const plugin = require('../../../../src/plugins/screenshoter/index'); +const plugin = require('../../../../src/protractor/plugins/screenshoter/index'); describe('Screenshoter Index', () => { let sandbox; diff --git a/test/unit/plugins/screenshoter/utils.spec.js b/test/unit/plugins/screenshoter/utils.spec.js index 69961919..a0d39652 100644 --- a/test/unit/plugins/screenshoter/utils.spec.js +++ b/test/unit/plugins/screenshoter/utils.spec.js @@ -3,7 +3,7 @@ const fs = require('fs'); const mkdirp = require('mkdirp'); const Promise = require('bluebird'); const jimp = require('jimp'); -const utils = require('../../../../src/plugins/screenshoter/utils'); +const utils = require('../../../../src/protractor/plugins/screenshoter/utils'); describe('Screenshoter Utils', () => { let sandbox;