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 @@ -3687,11 +3687,13 @@ describe('saveFile hooks', () => {
3687
3687
foo : 'bar' ,
3688
3688
} ,
3689
3689
} ;
3690
+ const config = Config . get ( 'test' ) ;
3690
3691
expect ( createFileSpy ) . toHaveBeenCalledWith (
3691
3692
jasmine . any ( String ) ,
3692
3693
newData ,
3693
3694
'text/plain' ,
3694
- newOptions
3695
+ newOptions ,
3696
+ config
3695
3697
) ;
3696
3698
} ) ;
3697
3699
@@ -3719,11 +3721,13 @@ describe('saveFile hooks', () => {
3719
3721
foo : 'bar' ,
3720
3722
} ,
3721
3723
} ;
3724
+ const config = Config . get ( 'test' ) ;
3722
3725
expect ( createFileSpy ) . toHaveBeenCalledWith (
3723
3726
jasmine . any ( String ) ,
3724
3727
newData ,
3725
3728
newContentType ,
3726
- newOptions
3729
+ newOptions ,
3730
+ config
3727
3731
) ;
3728
3732
const expectedFileName = 'donald_duck.pdf' ;
3729
3733
expect ( file . _name . indexOf ( expectedFileName ) ) . toBe ( file . _name . length - expectedFileName . length ) ;
@@ -3749,11 +3753,13 @@ describe('saveFile hooks', () => {
3749
3753
metadata : { foo : 'bar' } ,
3750
3754
tags : { bar : 'foo' } ,
3751
3755
} ;
3756
+ const config = Config . get ( 'test' ) ;
3752
3757
expect ( createFileSpy ) . toHaveBeenCalledWith (
3753
3758
jasmine . any ( String ) ,
3754
3759
jasmine . any ( Buffer ) ,
3755
3760
'text/plain' ,
3756
- options
3761
+ options ,
3762
+ config
3757
3763
) ;
3758
3764
} ) ;
3759
3765
You can’t perform that action at this time.
0 commit comments