@@ -53,7 +53,7 @@ describe('command', function() {
53
53
54
54
this . command = new Command ( projectBaseDir , examplesDir , this . out . print ) ;
55
55
56
- this . fakeJasmine = jasmine . createSpyObj ( 'jasmine' , [ 'loadConfigFile' , 'addHelperFiles ' , 'addRequires' , 'showColors' , 'execute' ,
56
+ this . fakeJasmine = jasmine . createSpyObj ( 'jasmine' , [ 'loadConfigFile' , 'addMatchingHelperFiles ' , 'addRequires' , 'showColors' , 'execute' ,
57
57
'randomizeTests' , 'seed' , 'coreVersion' , 'clearReporters' , 'addReporter' ] ) ;
58
58
this . fakeJasmine . loader = new Loader ( ) ;
59
59
this . fakeJasmine . env = jasmine . createSpyObj ( 'env' , [ 'configure' ] ) ;
@@ -243,17 +243,17 @@ describe('command', function() {
243
243
244
244
it ( 'should be able to add one helper pattern' , async function ( ) {
245
245
await this . command . run ( this . fakeJasmine , [ '--helper=helpers/**/*.js' ] ) ;
246
- expect ( this . fakeJasmine . addHelperFiles ) . toHaveBeenCalledWith ( [ 'helpers/**/*.js' ] ) ;
246
+ expect ( this . fakeJasmine . addMatchingHelperFiles ) . toHaveBeenCalledWith ( [ 'helpers/**/*.js' ] ) ;
247
247
} ) ;
248
248
249
249
it ( 'should be able to add many helper patterns' , async function ( ) {
250
250
await this . command . run ( this . fakeJasmine , [ '--helper=helpers/**/*.js' , '--helper=other.js' ] ) ;
251
- expect ( this . fakeJasmine . addHelperFiles ) . toHaveBeenCalledWith ( [ 'helpers/**/*.js' , 'other.js' ] ) ;
251
+ expect ( this . fakeJasmine . addMatchingHelperFiles ) . toHaveBeenCalledWith ( [ 'helpers/**/*.js' , 'other.js' ] ) ;
252
252
} ) ;
253
253
254
254
it ( 'should not modify helper patterns if no argument given' , async function ( ) {
255
255
await this . command . run ( this . fakeJasmine , [ ] ) ;
256
- expect ( this . fakeJasmine . addHelperFiles ) . not . toHaveBeenCalled ( ) ;
256
+ expect ( this . fakeJasmine . addMatchingHelperFiles ) . not . toHaveBeenCalled ( ) ;
257
257
} ) ;
258
258
259
259
it ( 'should be able to add one require' , async function ( ) {
0 commit comments