@@ -26,6 +26,10 @@ describe('core/strategies/action_code_settings', () => {
26
26
let auth : TestAuth ;
27
27
const request : GetOobCodeRequest = { } ;
28
28
29
+ const TEST_BUNDLE_ID = 'my-bundle' ;
30
+ const TEST_FDL_DOMAIN = 'fdl-domain' ;
31
+ const TEST_URL = 'my-url' ;
32
+
29
33
beforeEach ( async ( ) => {
30
34
auth = await testAuth ( ) ;
31
35
} ) ;
@@ -35,10 +39,10 @@ describe('core/strategies/action_code_settings', () => {
35
39
_setActionCodeSettingsOnRequest ( auth , request , {
36
40
handleCodeInApp : true ,
37
41
iOS : {
38
- bundleId : 'my-bundle'
42
+ bundleId : TEST_BUNDLE_ID
39
43
} ,
40
44
url : '' ,
41
- dynamicLinkDomain : 'fdl-domain'
45
+ dynamicLinkDomain : TEST_FDL_DOMAIN
42
46
} )
43
47
) . to . throw ( FirebaseError , '(auth/invalid-continue-uri)' ) ;
44
48
} ) ;
@@ -48,9 +52,9 @@ describe('core/strategies/action_code_settings', () => {
48
52
_setActionCodeSettingsOnRequest ( auth , request , {
49
53
handleCodeInApp : true ,
50
54
iOS : {
51
- bundleId : 'my-bundle'
55
+ bundleId : TEST_BUNDLE_ID
52
56
} ,
53
- url : 'my-url'
57
+ url : TEST_URL
54
58
} )
55
59
) . to . not . throw ( ) ;
56
60
} ) ;
@@ -60,9 +64,9 @@ describe('core/strategies/action_code_settings', () => {
60
64
_setActionCodeSettingsOnRequest ( auth , request , {
61
65
handleCodeInApp : true ,
62
66
iOS : {
63
- bundleId : 'my-bundle'
67
+ bundleId : TEST_BUNDLE_ID
64
68
} ,
65
- url : 'my-url' ,
69
+ url : TEST_URL ,
66
70
dynamicLinkDomain : ''
67
71
} )
68
72
) . to . throw ( FirebaseError , '(auth/invalid-dynamic-link-domain)' ) ;
@@ -73,9 +77,9 @@ describe('core/strategies/action_code_settings', () => {
73
77
_setActionCodeSettingsOnRequest ( auth , request , {
74
78
handleCodeInApp : true ,
75
79
iOS : {
76
- bundleId : 'my-bundle'
80
+ bundleId : TEST_BUNDLE_ID
77
81
} ,
78
- url : 'my-url' ,
82
+ url : TEST_URL ,
79
83
linkDomain : ''
80
84
} )
81
85
) . to . throw ( FirebaseError , '(auth/invalid-hosting-link-domain)' ) ;
@@ -88,8 +92,8 @@ describe('core/strategies/action_code_settings', () => {
88
92
iOS : {
89
93
bundleId : ''
90
94
} ,
91
- url : 'my-url' ,
92
- dynamicLinkDomain : 'fdl-domain'
95
+ url : TEST_URL ,
96
+ dynamicLinkDomain : TEST_FDL_DOMAIN
93
97
} )
94
98
) . to . throw ( FirebaseError , '(auth/missing-ios-bundle-id)' ) ;
95
99
} ) ;
@@ -101,8 +105,8 @@ describe('core/strategies/action_code_settings', () => {
101
105
android : {
102
106
packageName : ''
103
107
} ,
104
- url : 'my-url' ,
105
- dynamicLinkDomain : 'fdl-domain'
108
+ url : TEST_URL ,
109
+ dynamicLinkDomain : TEST_FDL_DOMAIN
106
110
} )
107
111
) . to . throw ( FirebaseError , '(auth/missing-android-pkg-name)' ) ;
108
112
} ) ;
0 commit comments