File tree Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Expand file tree Collapse file tree 1 file changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -3695,19 +3695,13 @@ describe('saveFile hooks', () => {
3695
3695
foo : 'bar' ,
3696
3696
} ,
3697
3697
} ;
3698
- // Get the actual config values that will be used
3699
- const config = Config . get ( 'test' ) ;
3700
-
3701
- if ( ! config . mount ) {
3702
- config . mount = 'http://localhost:8378/1' ; // Default mount for tests
3703
- }
3704
3698
3705
3699
expect ( createFileSpy ) . toHaveBeenCalledWith (
3706
3700
jasmine . any ( String ) ,
3707
3701
newData ,
3708
3702
'text/plain' ,
3709
3703
newOptions ,
3710
- config
3704
+ jasmine . objectContaining ( { applicationId : 'test' } )
3711
3705
) ;
3712
3706
} ) ;
3713
3707
@@ -3735,18 +3729,15 @@ describe('saveFile hooks', () => {
3735
3729
foo : 'bar' ,
3736
3730
} ,
3737
3731
} ;
3738
- const config = Config . get ( 'test' ) ;
3739
-
3740
- if ( ! config . mount ) {
3741
- config . mount = 'http://localhost:8378/1' ; // Default mount for tests
3742
- }
3743
3732
3744
3733
expect ( createFileSpy ) . toHaveBeenCalledWith (
3745
3734
jasmine . any ( String ) ,
3746
3735
newData ,
3747
3736
newContentType ,
3748
3737
newOptions ,
3749
- config
3738
+ jasmine . objectContaining ( {
3739
+ applicationId : 'test'
3740
+ } )
3750
3741
) ;
3751
3742
const expectedFileName = 'donald_duck.pdf' ;
3752
3743
expect ( file . _name . indexOf ( expectedFileName ) ) . toBe ( file . _name . length - expectedFileName . length ) ;
@@ -3772,18 +3763,14 @@ describe('saveFile hooks', () => {
3772
3763
metadata : { foo : 'bar' } ,
3773
3764
tags : { bar : 'foo' } ,
3774
3765
} ;
3775
- const config = Config . get ( 'test' ) ;
3776
3766
3777
- if ( ! config . mount ) {
3778
- config . mount = 'http://localhost:8378/1' ; // Default mount for tests
3779
- }
3780
3767
3781
3768
expect ( createFileSpy ) . toHaveBeenCalledWith (
3782
3769
jasmine . any ( String ) ,
3783
3770
jasmine . any ( Buffer ) ,
3784
3771
'text/plain' ,
3785
3772
options ,
3786
- config
3773
+ jasmine . objectContaining ( { applicationId : 'test' } )
3787
3774
) ;
3788
3775
} ) ;
3789
3776
You can’t perform that action at this time.
0 commit comments