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

Commit 426c6a7

Browse files
authored
Merge pull request #532 from ldapjs/back-to-tap
Convert tests back to node-tap
2 parents bdbc1b1 + 210d4c6 commit 426c6a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+183
-133
lines changed

.gitignore

Lines changed: 73 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,77 @@
1-
build
2-
node_modules
3-
coverage
4-
*.log
51
*.ldif
62
*.tar.*
73
*.tgz
4+
5+
# Lock files
6+
pnpm-lock.yaml
7+
shrinkwrap.yaml
8+
package-lock.json
9+
yarn.lock
10+
11+
# Logs
12+
logs
13+
*.log
14+
npm-debug.log*
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
21+
# Directory for instrumented libs generated by jscoverage/JSCover
22+
lib-cov
23+
24+
# Coverage directory used by tools like istanbul
25+
coverage
26+
27+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
28+
.grunt
29+
30+
# node-waf configuration
31+
.lock-wscript
32+
33+
# Compiled binary addons (http://nodejs.org/api/addons.html)
34+
build/Release
35+
36+
# Dependency directory
37+
node_modules
38+
39+
# Optional npm cache directory
40+
.npm
41+
42+
# Optional REPL history
43+
.node_repl_history
44+
45+
# 0x
46+
.__browserify_string_empty.js
47+
profile-*
48+
*.flamegraph
49+
50+
# tap --cov
51+
.nyc_output/
52+
53+
# JetBrains IntelliJ IDEA
54+
.idea/
55+
*.iml
56+
57+
# VS Code
58+
.vscode/
59+
60+
# xcode
61+
build/*
62+
*.mode1
63+
*.mode1v3
64+
*.mode2v3
65+
*.perspective
66+
*.perspectivev3
67+
*.pbxuser
68+
*.xcworkspace
69+
xcuserdata
70+
71+
# macOS
872
.DS_Store
73+
74+
# keys
75+
*.pem
76+
*.env.json
77+
*.env

.taprc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
esm: false

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@
3333
"asn1": "0.2.3",
3434
"assert-plus": "^1.0.0",
3535
"backoff": "^2.5.0",
36-
"ldap-filter": "^0.3.3",
3736
"dashdash": "^1.14.0",
37+
"ldap-filter": "^0.3.3",
3838
"once": "^1.4.0",
3939
"vasync": "^1.6.4",
4040
"verror": "^1.8.1"
4141
},
4242
"devDependencies": {
43-
"faucet": "0.0.1",
44-
"istanbul": "^0.4.5",
45-
"tape": "^4.6.2",
43+
"tap": "^14.6.1",
4644
"uuid": "^3.3.3"
4745
},
4846
"scripts": {
49-
"report": "./node_modules/.bin/istanbul report html && open ./coverage/lcov-report/index.html",
50-
"test": "./node_modules/.bin/istanbul cover --print none test/test.js | ./node_modules/.bin/faucet"
47+
"test": "tap --no-cov 'test/**/*.test.js'",
48+
"test:cov": "tap 'test/**/*.test.js'",
49+
"test:cov:html": "tap --coverage-report=html 'test/**/*.test.js'",
50+
"test:watch": "tap -n -w --no-coverage-report 'test/**/*.test.js'"
5151
}
5252
}

test/attribute.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
22

3-
var test = require('tape').test;
3+
var test = require('tap').test;
44

55
var asn1 = require('asn1');
66

test/change.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
22

3-
var test = require('tape').test;
3+
var test = require('tap').test;
44

55
var asn1 = require('asn1');
66

test/client.test.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
var logger = Object.create(require('abstract-logging'));
44

5-
var test = require('tape').test;
5+
var test = require('tap').test;
66
var uuid = require('uuid');
77
var vasync = require('vasync');
88
var util = require('util');
@@ -642,10 +642,12 @@ test('search sizeLimit', function (t) {
642642
res.on('error', t2.ifError.bind(t));
643643
});
644644
});
645+
646+
t.end()
645647
});
646648

647649

648-
test('search paged', function (t) {
650+
test('search paged', {timeout: 10000}, function (t) {
649651
t.test('paged - no pauses', function (t2) {
650652
var countEntries = 0;
651653
var countPages = 0;

test/controls/control.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
22

3-
var test = require('tape').test;
3+
var test = require('tap').test;
44

55
var asn1 = require('asn1');
66

test/controls/persistent_search_control.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
22

3-
var test = require('tape').test;
3+
var test = require('tap').test;
44

55
var asn1 = require('asn1');
66

0 commit comments

Comments
 (0)