Skip to content

Commit c7fab28

Browse files
committed
replace mocha with node:test
1 parent f1b17ef commit c7fab28

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.jshintrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"undef": true,
33
"unused": true,
44
"laxbreak": true,
5-
"browser": true,
6-
"node": true
5+
"browserify": true,
6+
"esversion": 11
77
}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ lint: node_modules
99
$(NODE_BIN)/jshint index.js test benchmark
1010

1111
test: node_modules
12-
$(NODE_BIN)/mocha --require should test
12+
node --require should --test
1313

1414
benchmark: node_modules
1515
$(NODE_BIN)/matcha --reporter plain benchmark

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
"devDependencies": {
1818
"@pirxpilot/jshint": "~3",
1919
"@pirxpilot/matcha": "~1",
20-
"mocha": "~3",
2120
"polyline-encoded": "^0.0.8",
22-
"should": "~11"
21+
"should": "~13"
2322
},
2423
"dependencies": {
2524
"sterta": "^2.2.1"

test/simplify.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
var { describe, it } = require('node:test');
12
var simplify = require('..');
23

3-
/* global describe, it */
4-
54
describe('simplify', function() {
65
it('should not change short polylines', function() {
76
simplify([]).should.have.length(0);

0 commit comments

Comments
 (0)