File tree 3 files changed +5
-8
lines changed
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 41
41
"bs58" : " ^4.0.1" ,
42
42
"callbackify" : " ^1.1.0" ,
43
43
"chai" : " ^4.2.0" ,
44
+ "chai-as-promised" : " ^7.1.1" ,
44
45
"cids" : " ~0.7.1" ,
45
46
"concat-stream" : " ^2.0.0" ,
46
47
"delay" : " ^4.3.0" ,
Original file line number Diff line number Diff line change 2
2
/* eslint max-nested-callbacks: ["error", 6] */
3
3
'use strict'
4
4
5
- const chai = require ( 'chai' )
6
- const dirtyChai = require ( 'dirty-chai' )
7
5
const hat = require ( 'hat' )
8
- const { getDescribe, getIt } = require ( '../utils/mocha' )
9
-
10
- const expect = chai . expect
11
- chai . use ( dirtyChai )
6
+ const { getDescribe, getIt, expect } = require ( '../utils/mocha' )
12
7
13
8
module . exports = ( createCommon , options ) => {
14
9
const describe = getDescribe ( options )
Original file line number Diff line number Diff line change 2
2
'use strict'
3
3
4
4
const chai = require ( 'chai' )
5
- const dirtyChai = require ( 'dirty-chai' )
6
5
7
- chai . use ( dirtyChai )
6
+ // Do not reorder these statements - https://github.com/chaijs/chai/issues/1298
7
+ chai . use ( require ( 'chai-as-promised' ) )
8
+ chai . use ( require ( 'dirty-chai' ) )
8
9
9
10
module . exports . expect = chai . expect
10
11
You can’t perform that action at this time.
0 commit comments