File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3695,11 +3695,13 @@ describe('saveFile hooks', () => {
3695
3695
foo : 'bar' ,
3696
3696
} ,
3697
3697
} ;
3698
+ const config = Config . get ( 'test' ) ;
3698
3699
expect ( createFileSpy ) . toHaveBeenCalledWith (
3699
3700
jasmine . any ( String ) ,
3700
3701
newData ,
3701
3702
'text/plain' ,
3702
- newOptions
3703
+ newOptions ,
3704
+ config
3703
3705
) ;
3704
3706
} ) ;
3705
3707
@@ -3727,11 +3729,13 @@ describe('saveFile hooks', () => {
3727
3729
foo : 'bar' ,
3728
3730
} ,
3729
3731
} ;
3732
+ const config = Config . get ( 'test' ) ;
3730
3733
expect ( createFileSpy ) . toHaveBeenCalledWith (
3731
3734
jasmine . any ( String ) ,
3732
3735
newData ,
3733
3736
newContentType ,
3734
- newOptions
3737
+ newOptions ,
3738
+ config
3735
3739
) ;
3736
3740
const expectedFileName = 'donald_duck.pdf' ;
3737
3741
expect ( file . _name . indexOf ( expectedFileName ) ) . toBe ( file . _name . length - expectedFileName . length ) ;
@@ -3757,11 +3761,13 @@ describe('saveFile hooks', () => {
3757
3761
metadata : { foo : 'bar' } ,
3758
3762
tags : { bar : 'foo' } ,
3759
3763
} ;
3764
+ const config = Config . get ( 'test' ) ;
3760
3765
expect ( createFileSpy ) . toHaveBeenCalledWith (
3761
3766
jasmine . any ( String ) ,
3762
3767
jasmine . any ( Buffer ) ,
3763
3768
'text/plain' ,
3764
- options
3769
+ options ,
3770
+ config
3765
3771
) ;
3766
3772
} ) ;
3767
3773
You can’t perform that action at this time.
0 commit comments