Skip to content

Commit

Permalink
replace mocha with node:test
Browse files Browse the repository at this point in the history
  • Loading branch information
pirxpilot committed Feb 7, 2024
1 parent f1b17ef commit c7fab28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"undef": true,
"unused": true,
"laxbreak": true,
"browser": true,
"node": true
"browserify": true,
"esversion": 11
}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ lint: node_modules
$(NODE_BIN)/jshint index.js test benchmark

test: node_modules
$(NODE_BIN)/mocha --require should test
node --require should --test

benchmark: node_modules
$(NODE_BIN)/matcha --reporter plain benchmark
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
"devDependencies": {
"@pirxpilot/jshint": "~3",
"@pirxpilot/matcha": "~1",
"mocha": "~3",
"polyline-encoded": "^0.0.8",
"should": "~11"
"should": "~13"
},
"dependencies": {
"sterta": "^2.2.1"
Expand Down
3 changes: 1 addition & 2 deletions test/simplify.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
var { describe, it } = require('node:test');
var simplify = require('..');

/* global describe, it */

describe('simplify', function() {
it('should not change short polylines', function() {
simplify([]).should.have.length(0);
Expand Down

0 comments on commit c7fab28

Please sign in to comment.