File tree Expand file tree Collapse file tree 3 files changed +1326
-583
lines changed Expand file tree Collapse file tree 3 files changed +1326
-583
lines changed Original file line number Diff line number Diff line change 26
26
},
27
27
"license" : " MIT" ,
28
28
"devDependencies" : {
29
- "assert" : " ^1.3.0" ,
30
29
"chai" : " ^4.1.2" ,
31
- "express" : " ^4.13.3" ,
30
+ "chai-as-promised" : " ^7.1.1" ,
31
+ "dirty-chai" : " ^2.0.1" ,
32
+ "fixd" : " ^1.0.1" ,
32
33
"istanbul" : " ^0.4.5" ,
33
34
"mocha" : " ^3.5.3" ,
35
+ "nodemon" : " ^1.12.1" ,
36
+ "require-dir" : " ^0.3.2" ,
34
37
"should" : " ^13.0.1" ,
38
+ "sinon" : " ^3.3.0" ,
39
+ "sinon-chai" : " ^2.13.0" ,
35
40
"standard" : " ^10.0.3"
36
41
},
37
42
"dependencies" : {
38
43
"bluebird" : " ^3.5.0" ,
39
44
"pg" : " ^7.3.0"
45
+ },
46
+ "standard" : {
47
+ "ignore" : [
48
+ " coverage"
49
+ ],
50
+ "env" : [
51
+ " node" ,
52
+ " mocha"
53
+ ],
54
+ "globals" : [
55
+ " sinon" ,
56
+ " fixd" ,
57
+ " expect"
58
+ ]
40
59
}
41
60
}
Original file line number Diff line number Diff line change 1
1
const chai = require ( 'chai' )
2
- global . assert = require ( 'assert' )
3
- global . should = require ( 'should' )
2
+ const dirtyChai = require ( 'dirty-chai' )
3
+ const chaiAsPromised = require ( 'chai-as-promised' )
4
+ const mod = require ( 'module' )
5
+ const path = require ( 'path' )
6
+ const sinon = require ( 'sinon' )
7
+ const sinonChai = require ( 'sinon-chai' )
8
+ const fixd = require ( 'fixd' )
9
+
10
+ // Chai
11
+ // ----------------------------------------
4
12
global . expect = chai . expect
13
+ chai . use ( chaiAsPromised )
14
+ chai . use ( dirtyChai )
15
+ chai . use ( sinonChai )
16
+
17
+ // Sinon
18
+ // ----------------------------------------
19
+ global . sinon = sinon
20
+
21
+ // Fixd
22
+ // ----------------------------------------
23
+ global . fixd = fixd
24
+ require ( 'require-dir' ) ( path . resolve ( __dirname , 'fixtures' ) )
25
+
26
+ // Node
27
+ // ----------------------------------------
28
+ // allow require() from project root
29
+ process . env . NODE_PATH = path . join ( process . cwd ( ) , process . env . NODE_PATH || '' )
30
+ mod . _initPaths ( )
You can’t perform that action at this time.
0 commit comments