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', () => {
36953695 foo : 'bar' ,
36963696 } ,
36973697 } ;
3698+ const config = Config . get ( 'test' ) ;
36983699 expect ( createFileSpy ) . toHaveBeenCalledWith (
36993700 jasmine . any ( String ) ,
37003701 newData ,
37013702 'text/plain' ,
3702- newOptions
3703+ newOptions ,
3704+ config
37033705 ) ;
37043706 } ) ;
37053707
@@ -3727,11 +3729,13 @@ describe('saveFile hooks', () => {
37273729 foo : 'bar' ,
37283730 } ,
37293731 } ;
3732+ const config = Config . get ( 'test' ) ;
37303733 expect ( createFileSpy ) . toHaveBeenCalledWith (
37313734 jasmine . any ( String ) ,
37323735 newData ,
37333736 newContentType ,
3734- newOptions
3737+ newOptions ,
3738+ config
37353739 ) ;
37363740 const expectedFileName = 'donald_duck.pdf' ;
37373741 expect ( file . _name . indexOf ( expectedFileName ) ) . toBe ( file . _name . length - expectedFileName . length ) ;
@@ -3757,11 +3761,13 @@ describe('saveFile hooks', () => {
37573761 metadata : { foo : 'bar' } ,
37583762 tags : { bar : 'foo' } ,
37593763 } ;
3764+ const config = Config . get ( 'test' ) ;
37603765 expect ( createFileSpy ) . toHaveBeenCalledWith (
37613766 jasmine . any ( String ) ,
37623767 jasmine . any ( Buffer ) ,
37633768 'text/plain' ,
3764- options
3769+ options ,
3770+ config
37653771 ) ;
37663772 } ) ;
37673773
You can’t perform that action at this time.
0 commit comments