@@ -206,13 +206,14 @@ describe('options', function() {
206206 } ) ;
207207
208208 it ( 'should have attempted to load two files' , function ( ) {
209- expect ( readFileSync , 'was called times' , 2 ) . and (
210- 'to have calls satisfying' ,
211- [
212- { args : [ '/some/package.json' , 'utf8' ] } ,
213- { args : [ '/path/to/mocha.opts' , 'utf8' ] }
214- ]
215- ) ;
209+ expect (
210+ readFileSync ,
211+ 'was called times' ,
212+ 2
213+ ) . and ( 'to have calls satisfying' , [
214+ { args : [ '/some/package.json' , 'utf8' ] } ,
215+ { args : [ '/path/to/mocha.opts' , 'utf8' ] }
216+ ] ) ;
216217 } ) ;
217218
218219 it ( 'should set opts = false' , function ( ) {
@@ -255,10 +256,14 @@ describe('options', function() {
255256 } ) ;
256257
257258 it ( 'should not attempt to read any mocha.opts' , function ( ) {
258- expect ( readFileSync , 'was called times' , 1 ) . and (
259- 'to have all calls satisfying' ,
260- [ '/some/package.json' , 'utf8' ]
261- ) ;
259+ expect (
260+ readFileSync ,
261+ 'was called times' ,
262+ 1
263+ ) . and ( 'to have all calls satisfying' , [
264+ '/some/package.json' ,
265+ 'utf8'
266+ ] ) ;
262267 } ) ;
263268
264269 it ( 'should set opts = false' , function ( ) {
0 commit comments