Skip to content

Commit 064b37b

Browse files
committed
Run the test script with npm test
1 parent e53f869 commit 064b37b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
"scripts": {
2323
"prepublish": "npm run lint",
2424
"lint": "eslint ./lib",
25-
"lint:watch": "watch 'npm run lint' ./lib --wait 0.5"
25+
"lint:watch": "watch 'npm run lint' ./lib --wait 0.5",
26+
"pretest": "cd test && tsc",
27+
"test": "cd test && node test.js"
2628
},
2729
"dependencies": {
2830
"@types/ldapjs": "^1.0.0",
@@ -32,7 +34,10 @@
3234
"lru-cache": "^4.0.2"
3335
},
3436
"devDependencies": {
37+
"@types/bunyan": "0.0.36",
38+
"bunyan": "^1.8.10",
3539
"eslint": "^3.19.0",
40+
"typescript": "^2.3.3",
3641
"watch": "^1.0.2"
3742
}
3843
}

test/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
/**
22
* A dummy manual test script
3-
*
4-
* To compile and run:
5-
*
6-
* npm install bunyan @types/bunyan typescript
7-
* cd test
8-
* ../node_modules/.bin/tsc && node test.js
93
*/
104
import * as Logger from 'bunyan';
115
import * as LdapAuth from '../lib/ldapauth';

0 commit comments

Comments
 (0)