Skip to content

Commit 57730a9

Browse files
committed
chore: update deps and tool configuration
1 parent a123018 commit 57730a9

File tree

7 files changed

+15710
-43
lines changed

7 files changed

+15710
-43
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ components
1616
node_modules
1717
npm-debug.log
1818

19+
.nyc_output/
1920
coverage/
2021

2122
pathval.js

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict';
22

3+
34
/* !
45
* Chai - pathval utility
56
* Copyright(c) 2012-2014 Jake Luer <[email protected]>
@@ -82,7 +83,7 @@ function parsePath(path) {
8283
if (mArr) {
8384
parsed = { i: parseFloat(mArr[1]) };
8485
} else {
85-
parsed = { p: value.replace(/\\([.\[\]])/g, '$1') };
86+
parsed = { p: value.replace(/\\([.[\]])/g, '$1') };
8687
}
8788

8889
return parsed;

karma.conf.js

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
/* eslint no-process-env: "off" */
2+
13
'use strict';
4+
25
var packageJson = require('./package.json');
36
var defaultTimeout = 120000;
47
var browserifyIstanbul = require('browserify-istanbul');
58
module.exports = function configureKarma(config) {
6-
var localBrowsers = [
7-
'PhantomJS',
8-
];
9+
var localBrowsers = [ 'PhantomJS' ];
910
var sauceLabsBrowsers = {
1011
SauceChromeLatest: {
1112
base: 'SauceLabs',
@@ -41,7 +42,9 @@ module.exports = function configureKarma(config) {
4142
config.set({
4243
basePath: '',
4344
browsers: localBrowsers,
44-
logLevel: process.env.npm_config_debug ? config.LOG_DEBUG : config.LOG_INFO,
45+
logLevel: process.env.npm_config_debug ?
46+
config.LOG_DEBUG :
47+
config.LOG_INFO,
4548
frameworks: [ 'browserify', 'mocha' ],
4649
files: [ 'test/*.js' ],
4750
exclude: [],
@@ -51,9 +54,7 @@ module.exports = function configureKarma(config) {
5154
browserify: {
5255
debug: true,
5356
bare: true,
54-
transform: [
55-
browserifyIstanbul({ ignore: [ '**/node_modules/**', '**/test/**' ] }),
56-
],
57+
transform: [ browserifyIstanbul({ ignore: [ '**/node_modules/**', '**/test/**' ] }) ],
5758
},
5859
reporters: [ 'progress', 'coverage' ],
5960
coverageReporter: {
@@ -82,14 +83,11 @@ module.exports = function configureKarma(config) {
8283
browsers: localBrowsers.concat(Object.keys(sauceLabsBrowsers)),
8384
sauceLabs: {
8485
testName: packageJson.name,
85-
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER || new Date().getTime(),
86+
tunnelIdentifier:
87+
process.env.TRAVIS_JOB_NUMBER || new Date().getTime(),
8688
recordVideo: true,
87-
startConnect: ('TRAVIS' in process.env) === false,
88-
tags: [
89-
'pathval_' + packageJson.version,
90-
process.env.SAUCE_USERNAME + '@' + branch,
91-
build,
92-
],
89+
startConnect: 'TRAVIS' in process.env === false,
90+
tags: [ 'pathval_' + packageJson.version, process.env.SAUCE_USERNAME + '@' + branch, build ],
9391
},
9492
});
9593
}

0 commit comments

Comments
 (0)