Skip to content

Commit

Permalink
migrate from istanbul to nyc
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcg committed Jun 14, 2023
1 parent 9064a5a commit e5fd424
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 48 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
.coveralls.yml
coverage/
node_modules/
/.nyc_output/
/node_modules/
2 changes: 2 additions & 0 deletions .mocharc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recursive: true
ui: tdd
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
language: node_js
node_js:
- "12.13"
- "12.22"
branches:
only:
- master
script:
- "make test"
- "make test-coveralls"
- "npm test"
after_success:
- "npm run coverage"
32 changes: 0 additions & 32 deletions Makefile

This file was deleted.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"license": "MIT",
"scripts": {
"test": "make test"
"test": "nyc mocha ./test/",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"keywords": [
"iana",
Expand All @@ -31,9 +32,9 @@
"language-subtag-registry": "^0.3.20"
},
"devDependencies": {
"mocha": "~6.2.0",
"istanbul": "~0.4.2",
"coveralls": "~3.0.5"
"coveralls": "^3.1.1",
"nyc": "^15.1.0",
"mocha": "^10.2.0"
},
"files": [
"/lib"
Expand Down
4 changes: 2 additions & 2 deletions test/lib/SubtagTest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @author Matthew Caruana Galizia <m@m.cg>
* @author Matthew Caruana Galizia <mattcg@gmail.com>
* @license MIT: http://mattcg.mit-license.org/
* @copyright Copyright (c) 2013, Matthew Caruana Galizia
*/
Expand All @@ -10,7 +10,7 @@
'use strict';

var assert = require('assert');
var Subtag = require(process.env.TEST_LIB_PATH + '/Subtag');
var Subtag = require('../../lib/Subtag');

suite('Subtag', function() {

Expand Down
4 changes: 2 additions & 2 deletions test/lib/TagTest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @author Matthew Caruana Galizia <m@m.cg>
* @author Matthew Caruana Galizia <mattcg@gmail.com>
* @license MIT: http://mattcg.mit-license.org/
* @copyright Copyright (c) 2013, Matthew Caruana Galizia
*/
Expand All @@ -10,7 +10,7 @@
'use strict';

var assert = require('assert');
var Tag = require(process.env.TEST_LIB_PATH + '/Tag');
var Tag = require('../../lib/Tag');

suite('Tag', function() {

Expand Down
4 changes: 2 additions & 2 deletions test/lib/index-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @author Matthew Caruana Galizia <m@m.cg>
* @author Matthew Caruana Galizia <mattcg@gmail.com>
* @license MIT: http://mattcg.mit-license.org/
* @copyright Copyright (c) 2013, Matthew Caruana Galizia
*/
Expand All @@ -10,7 +10,7 @@
'use strict';

var assert = require('assert');
var tags = require(process.env.TEST_LIB_PATH);
var tags = require('../../lib');

suite('tags', function() {

Expand Down

0 comments on commit e5fd424

Please sign in to comment.