Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit eb7a54c

Browse files
author
Jan Krems
committed
chore: Switch to tap for tests
1 parent 130c7d1 commit eb7a54c

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

lib/node-inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const kTwoBytePayloadLengthField = 126;
5656
const kEightBytePayloadLengthField = 127;
5757
const kMaskingKeyWidthInBytes = 4;
5858

59-
exports.port = process.debugPort;
59+
exports.port = 9229;
6060

6161
function ignoreError() {}
6262

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"pretest": "eslint lib test",
18-
"test": "mocha",
18+
"test": "tap test",
1919
"posttest": "nlm verify"
2020
},
2121
"nlm": {
@@ -27,13 +27,12 @@
2727
},
2828
"dependencies": {},
2929
"devDependencies": {
30-
"assertive": "^2.0.0",
3130
"eslint": "^2.0.0",
3231
"eslint-config-groupon-node6": "^3.1.0",
3332
"eslint-plugin-import": "^1.6.1",
3433
"eslint-plugin-node": "^2.0.0",
35-
"mocha": "^2.0.0",
36-
"nlm": "^2.0.0"
34+
"nlm": "^2.0.0",
35+
"tap": "^7.1.2"
3736
},
3837
"author": {
3938
"name": "Jan Krems",

test/mocha.opts

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/node-inspect.test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
'use strict';
2-
const assert = require('assertive');
2+
const tap = require('tap');
33

44
const nodeInspect = require('../');
55

6-
describe('node-inspect', () => {
7-
it('is empty', () => {
8-
assert.equal(5858, nodeInspect.port);
9-
});
10-
});
6+
tap.equal(9229, nodeInspect.port,
7+
'Uses the --inspect default port');

0 commit comments

Comments
 (0)