Skip to content

Commit 9913304

Browse files
committed
Drop mocha
As of version 6.0.0, mocha no longer supports Node.js 4
1 parent a8d5ef6 commit 9913304

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
},
1616
"devDependencies": {
1717
"defence-cli": "^3.0.1",
18-
"mocha": "^5.2.0",
1918
"replace-require-self": "^1.0.0",
2019
"standard": "^12.0.1"
2120
},
@@ -34,7 +33,7 @@
3433
"scripts": {
3534
"lint": "standard",
3635
"test:readme": "defence -i javascript README.md | replace-require-self | node",
37-
"test:mocha": "mocha test/index.js",
38-
"test": "npm run test:mocha && npm run test:readme"
36+
"test:suite": "node test/index.js",
37+
"test": "npm run test:suite && npm run test:readme"
3938
}
4039
}

test/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict'
22

3-
/* global it */
4-
53
var assert = require('assert')
64
var p = require('..')
75

@@ -83,3 +81,7 @@ it('parses `AND`, `OR` and `WITH` with the correct precedence', function () {
8381
}
8482
)
8583
})
84+
85+
function it (message, test) {
86+
test()
87+
}

0 commit comments

Comments
 (0)