This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 4141 "bs58" : " ^4.0.1" ,
4242 "callbackify" : " ^1.1.0" ,
4343 "chai" : " ^4.2.0" ,
44+ "chai-as-promised" : " ^7.1.1" ,
4445 "cids" : " ~0.7.1" ,
4546 "concat-stream" : " ^2.0.0" ,
4647 "delay" : " ^4.3.0" ,
Original file line number Diff line number Diff line change 22/* eslint max-nested-callbacks: ["error", 6] */
33'use strict'
44
5- const chai = require ( 'chai' )
6- const dirtyChai = require ( 'dirty-chai' )
75const 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' )
127
138module . exports = ( createCommon , options ) => {
149 const describe = getDescribe ( options )
Original file line number Diff line number Diff line change 22'use strict'
33
44const chai = require ( 'chai' )
5- const dirtyChai = require ( 'dirty-chai' )
65
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' ) )
89
910module . exports . expect = chai . expect
1011
You can’t perform that action at this time.
0 commit comments