@@ -3696,11 +3696,14 @@ describe('saveFile hooks', () => {
3696
3696
} ,
3697
3697
} ;
3698
3698
// Get the actual config values that will be used
3699
+ const config = Config . get ( 'test' ) ;
3700
+
3699
3701
const expectedConfig = {
3700
- applicationId : 'test' ,
3701
- mount : 'http://localhost:8378/1' ,
3702
- fileKey : 'test'
3702
+ applicationId : config . applicationId ,
3703
+ mount : config . mount ,
3704
+ fileKey : config . fileKey
3703
3705
} ;
3706
+
3704
3707
expect ( createFileSpy ) . toHaveBeenCalledWith (
3705
3708
jasmine . any ( String ) ,
3706
3709
newData ,
@@ -3734,12 +3737,14 @@ describe('saveFile hooks', () => {
3734
3737
foo : 'bar' ,
3735
3738
} ,
3736
3739
} ;
3737
- // Get the actual config values that will be used
3740
+ const config = Config . get ( 'test' ) ;
3741
+
3738
3742
const expectedConfig = {
3739
- applicationId : 'test' ,
3740
- mount : 'http://localhost:8378/1' ,
3741
- fileKey : 'test'
3743
+ applicationId : config . applicationId ,
3744
+ mount : config . mount ,
3745
+ fileKey : config . fileKey
3742
3746
} ;
3747
+
3743
3748
expect ( createFileSpy ) . toHaveBeenCalledWith (
3744
3749
jasmine . any ( String ) ,
3745
3750
newData ,
@@ -3771,12 +3776,14 @@ describe('saveFile hooks', () => {
3771
3776
metadata : { foo : 'bar' } ,
3772
3777
tags : { bar : 'foo' } ,
3773
3778
} ;
3774
- // Get the actual config values that will be used
3779
+ const config = Config . get ( 'test' ) ;
3780
+
3775
3781
const expectedConfig = {
3776
- applicationId : 'test' ,
3777
- mount : 'http://localhost:8378/1' ,
3778
- fileKey : 'test'
3782
+ applicationId : config . applicationId ,
3783
+ mount : config . mount ,
3784
+ fileKey : config . fileKey
3779
3785
} ;
3786
+
3780
3787
expect ( createFileSpy ) . toHaveBeenCalledWith (
3781
3788
jasmine . any ( String ) ,
3782
3789
jasmine . any ( Buffer ) ,
0 commit comments