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', () => {
36873687 foo : 'bar' ,
36883688 } ,
36893689 } ;
3690+ const config = Config . get ( 'test' ) ;
36903691 expect ( createFileSpy ) . toHaveBeenCalledWith (
36913692 jasmine . any ( String ) ,
36923693 newData ,
36933694 'text/plain' ,
3694- newOptions
3695+ newOptions ,
3696+ config
36953697 ) ;
36963698 } ) ;
36973699
@@ -3719,11 +3721,13 @@ describe('saveFile hooks', () => {
37193721 foo : 'bar' ,
37203722 } ,
37213723 } ;
3724+ const config = Config . get ( 'test' ) ;
37223725 expect ( createFileSpy ) . toHaveBeenCalledWith (
37233726 jasmine . any ( String ) ,
37243727 newData ,
37253728 newContentType ,
3726- newOptions
3729+ newOptions ,
3730+ config
37273731 ) ;
37283732 const expectedFileName = 'donald_duck.pdf' ;
37293733 expect ( file . _name . indexOf ( expectedFileName ) ) . toBe ( file . _name . length - expectedFileName . length ) ;
@@ -3749,11 +3753,13 @@ describe('saveFile hooks', () => {
37493753 metadata : { foo : 'bar' } ,
37503754 tags : { bar : 'foo' } ,
37513755 } ;
3756+ const config = Config . get ( 'test' ) ;
37523757 expect ( createFileSpy ) . toHaveBeenCalledWith (
37533758 jasmine . any ( String ) ,
37543759 jasmine . any ( Buffer ) ,
37553760 'text/plain' ,
3756- options
3761+ options ,
3762+ config
37573763 ) ;
37583764 } ) ;
37593765
You can’t perform that action at this time.
0 commit comments