Skip to content

Commit 7d4d75d

Browse files
gnoughtmcollina
authored andcommitted
Used nyc, fixed lint & updated dependencies (#14)
* Replace istanbul with nyc istanbul is not maintained anymore * Update dependencies * Lint fix * Update .gitignore
1 parent 896cf61 commit 7d4d75d

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ pids
1010
# Directory for instrumented libs generated by jscoverage/JSCover
1111
lib-cov
1212

13-
# Coverage directory used by tools like istanbul
13+
# Coverage directory used by tools like nyc
1414
coverage
15+
.nyc_output
1516

1617
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1718
.grunt

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"lint": "standard",
88
"test": "tape test.js | faucet",
9-
"coverage": "istanbul cover tape test.js; cat coverage/lcov.info | coveralls"
9+
"coverage": "nyc --reporter=lcov tape test.js; cat coverage/lcov.info | coveralls"
1010
},
1111
"pre-commit": [
1212
"lint",
@@ -29,20 +29,20 @@
2929
"homepage": "https://github.com/mcollina/fastparallel",
3030
"devDependencies": {
3131
"async": "^3.1.0",
32-
"coveralls": "^3.0.4",
32+
"coveralls": "^3.0.5",
3333
"fastbench": "^1.0.1",
3434
"faucet": "0.0.1",
3535
"insync": "^2.1.1",
36-
"istanbul": "^0.4.5",
3736
"items": "^2.1.2",
3837
"neo-async": "^2.6.1",
38+
"nyc": "^14.1.1",
3939
"parallelize": "^3.0.1",
4040
"pre-commit": "^1.2.2",
41-
"standard": "^12.0.1",
41+
"standard": "^13.0.1",
4242
"tape": "^4.11.0"
4343
},
4444
"dependencies": {
4545
"reusify": "^1.0.4",
46-
"xtend": "^4.0.1"
46+
"xtend": "^4.0.2"
4747
}
4848
}

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ test('each works with arrays of objects', function (t) {
424424

425425
var instance = parallel({ results: false })
426426
var obj = {}
427-
var args = [{val: true}, {val: true}]
427+
var args = [{ val: true }, { val: true }]
428428

429429
instance(obj, something, args, function () {
430430
t.ok('done called')

0 commit comments

Comments
 (0)