From d5d5449bf057c040a1cfbe76e821e50725382c18 Mon Sep 17 00:00:00 2001 From: Igor Muchychka Date: Mon, 5 Dec 2016 08:55:38 +0100 Subject: [PATCH] fix(dependencies): update all dependencies to latest --- .travis.yml | 6 ++++++ lib/index.js | 6 +++--- package.json | 14 +++++++------- test/cli.test.js | 6 ++---- test/test-case-factory.js | 7 ++++--- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/.travis.yml b/.travis.yml index 34c6bc2..4a651be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,15 @@ node_js: - '4' before_script: - npm prune + - java -version after_success: - npm run coveralls - npm run semantic-release branches: except: - /^v\d+\.\d+\.\d+$/ +addons: + apt: + packages: + - oracle-java8-installer + - oracle-java8-set-default diff --git a/lib/index.js b/lib/index.js index c7b32ad..94545cd 100644 --- a/lib/index.js +++ b/lib/index.js @@ -20,9 +20,9 @@ module.exports = function (providedOptions) { } peerUtils.checkDependency('nightwatch', { - '^0.9.9': notTested.bind(null, '0.8.0 - 0.9.8'), - '0.8.0 - 0.9.8': supported, - other: notSuppoted.bind(null, '0.8.0 - 0.9.8'), + '^0.9.10': notTested.bind(null, '0.8.0 - 0.9.9'), + '0.8.0 - 0.9.9': supported, + other: notSuppoted.bind(null, '0.8.0 - 0.9.9'), notFound: notFound }) peerUtils.checkDependency('cucumber', { diff --git a/package.json b/package.json index 8b07028..9a3eed2 100644 --- a/package.json +++ b/package.json @@ -74,13 +74,13 @@ "devDependencies": { "chai": "^3.5.0", "chromedriver": "^2.25.1", - "coveralls": "^2.11.14", - "cucumber": "^2.0.0-rc.1", + "coveralls": "^2.11.15", + "cucumber": "^2.0.0-rc.2", "cz-conventional-changelog": "^1.2.0", - "eslint": "^3.9.1", + "eslint": "^3.11.1", "eslint-config-standard": "^6.2.1", "eslint-plugin-no-only-tests": "^1.1.0", - "eslint-plugin-promise": "^3.3.1", + "eslint-plugin-promise": "^3.4.0", "eslint-plugin-standard": "^2.0.1", "ghooks": "^1.3.2", "grunt": "^1.0.1", @@ -88,11 +88,11 @@ "gulp-nightwatch": "^0.3.2", "istanbul": "^0.4.5", "jsdom": "^9.8.3", - "mocha": "^3.1.2", - "nightwatch": "^0.9.8", + "mocha": "^3.2.0", + "nightwatch": "^0.9.9", "phantomjs-prebuilt": "^2.1.13", "rimraf": "^2.5.4", - "selenium-server": "^2.53.1", + "selenium-server": "^3.0.1", "semantic-release": "^6.3.2" }, "config": { diff --git a/test/cli.test.js b/test/cli.test.js index 4040116..a1a98a0 100644 --- a/test/cli.test.js +++ b/test/cli.test.js @@ -161,10 +161,9 @@ describe('CLI', () => { .then('The result should contain -9') .run(['--tag', 'negative']) .then((result) => { + result.features.length.should.equal(1) result.features[0].result.scenarioCounts.should.deep.equal({passed: 2}) result.features[0].name.should.equal('negative addition') - result.features[1].result.scenarioCounts.should.deep.equal({}) - result.features[1].name.should.equal('positive addition') }) }) @@ -199,10 +198,9 @@ describe('CLI', () => { .then('The result should contain -9') .run(['--skiptags', 'positive']) .then((result) => { + result.features.length.should.equal(1) result.features[0].result.scenarioCounts.should.deep.equal({passed: 2}) result.features[0].name.should.equal('negative addition') - result.features[1].result.scenarioCounts.should.deep.equal({}) - result.features[1].name.should.equal('positive addition') }) }) diff --git a/test/test-case-factory.js b/test/test-case-factory.js index 660628c..4338743 100644 --- a/test/test-case-factory.js +++ b/test/test-case-factory.js @@ -4,15 +4,16 @@ const fork = require('child_process').fork const mkdirp = require('mkdirp') const fs = require('fs') const path = require('path') -const _ = require('lodash') +const template = require('lodash.template') +const assign = require('lodash.assign') const PrefixStream = require('../lib/prefix-stream') const nightwatchConfTemplatePath = fs.readFileSync(path.join(process.cwd(), 'test', 'fixture', 'nightwatch.conf.js.tmpl')) -const nightwatchConfTemplate = _.template(nightwatchConfTemplatePath) +const nightwatchConfTemplate = template(nightwatchConfTemplatePath) class TestCaseFactory { constructor (name, options) { this.name = name - this.options = _.assign({ + this.options = assign({ paralell: false, hooks: false, eventHandlersWithoutCallback: false,