Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 4d4a3a7

Browse files
committed
feat(mocha): switch to using mocha for testing the module
1 parent 6f01469 commit 4d4a3a7

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

Diff for: package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
"nan": "^2.9.2"
2424
},
2525
"devDependencies": {
26-
"mongodb-extjson": "^2.1.0",
27-
"nodeunit": "~0.9.0"
26+
"chai": "^4.1.2",
27+
"mocha": "^3.5.3",
28+
"mongodb-extjson": "^2.1.0"
2829
},
2930
"main": "./index",
3031
"directories": {
@@ -35,7 +36,7 @@
3536
},
3637
"scripts": {
3738
"install": "(node-gyp rebuild 2> builderror.log) || (exit 0)",
38-
"test": "nodeunit ./test/node"
39+
"test": "mocha ./test/node"
3940
},
4041
"licenses": [
4142
{

Diff for: test/node/decimal128_tests.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
let Decimal128 = require('../../lib/bson/decimal128'),
3+
var BSON = require('../..'),
4+
Decimal128 = BSON.Decimal128,
45
expect = require('chai').expect,
56
createBSON = require('../utils');
67

Diff for: test/node/map_tests.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
var M = require('../../lib/bson/map');
3+
var BSON = require('../..');
4+
var M = BSON.Map;
45
var createBSON = require('../utils');
56
const expect = require('chai').expect;
67

Diff for: test/node/serialize_with_buffer_tests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
let createBSON = require('../utils'),
4-
expect = require('chai').expect;
3+
var createBSON = require('../utils');
4+
var expect = require('chai').expect;
55

66
describe('serializeWithBuffer', function() {
77
/**

0 commit comments

Comments
 (0)