Skip to content

Commit

Permalink
Merge branch 'master' into greenkeeper-mocha-3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriopvl authored Mar 15, 2017
2 parents 40872df + 80bbe0c commit f5c5874
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 19 deletions.
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

4 changes: 3 additions & 1 deletion examples/simple/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* eslint-env mocha */

describe('ChromeLauncher', function () {
it('works', function () {
1 + 1 === 2
return 1 + 1 === 2
})
})
10 changes: 1 addition & 9 deletions gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,13 @@ module.exports = function (grunt) {
simple: {
configFile: 'examples/simple/karma.conf.js'
}
},
eslint: {
target: [
'index.js',
'gruntfile.js',
'test/*.js',
'examples/**/*.js'
]
}
})

require('load-grunt-tasks')(grunt)

grunt.registerTask('test', ['simplemocha'])
grunt.registerTask('default', ['eslint', 'test'])
grunt.registerTask('default', ['test'])

grunt.registerTask('release', 'Bump the version and publish to NPM.', function (type) {
grunt.task.run([
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ var ChromiumBrowser = function (baseBrowserDecorator, args) {
baseBrowserDecorator(this)

var flags = args.flags || []
var userDataDir = args.chromeDataDir || this._tempDir

this._getOptions = function (url) {
// Chromium CLI options
Expand All @@ -82,7 +83,7 @@ var ChromiumBrowser = function (baseBrowserDecorator, args) {
})

return [
'--user-data-dir=' + this._tempDir,
'--user-data-dir=' + userDataDir,
'--no-default-browser-check',
'--no-first-run',
'--disable-default-apps',
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "A Karma plugin. Launcher for Chrome and Chrome Canary.",
"main": "index.js",
"scripts": {
"lint": "standard",
"pretest": "npm run lint",
"test": "grunt test"
},
"repository": {
Expand All @@ -23,15 +25,11 @@
"license": "MIT",
"devDependencies": {
"chai": "^3.3.0",
"eslint": "^1.6.0",
"eslint-config-standard": "^4.4.0",
"eslint-plugin-standard": "^1.3.1",
"grunt": "^0.4.1",
"grunt-auto-release": "^0.0.6",
"grunt-bump": "^0.6.0",
"grunt-conventional-changelog": "^5.0.0",
"grunt-conventional-github-releaser": "^0.5.0",
"grunt-eslint": "^17.2.0",
"grunt-karma": "1.x || ^0.12.1",
"grunt-npm": "^0.0.2",
"grunt-simple-mocha": "^0.4.0",
Expand All @@ -40,7 +38,8 @@
"karma-mocha": "1.x || ^0.2.0",
"load-grunt-tasks": "^3.2.0",
"mocha": "^3.2.0",
"sinon": "^1.17.1"
"sinon": "^1.17.1",
"standard": "^7.1.2"
},
"contributors": [
"Mark Ethan Trostler <[email protected]>",
Expand Down
2 changes: 2 additions & 0 deletions test/jsflags.spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-env mocha */

var expect = require('chai').expect
var sinon = require('sinon')

Expand Down

0 comments on commit f5c5874

Please sign in to comment.