@@ -63,7 +63,7 @@ describe('openAuthSessionAsync', () => {
63
63
const result = await openAuthSessionAsync ( mockUrl , mockRedirectUrls ) ;
64
64
65
65
expect ( mockNativeModule ) . toHaveBeenCalledWith (
66
- 'https://example.com/auth' ,
66
+ mockUrl ,
67
67
mockDeepLinkUrl ,
68
68
false ,
69
69
) ;
@@ -77,7 +77,7 @@ describe('openAuthSessionAsync', () => {
77
77
await openAuthSessionAsync ( httpUrl , mockRedirectUrls ) ;
78
78
79
79
expect ( mockNativeModule ) . toHaveBeenCalledWith (
80
- 'https://example.com/auth' ,
80
+ mockUrl ,
81
81
mockDeepLinkUrl ,
82
82
false ,
83
83
) ;
@@ -89,7 +89,7 @@ describe('openAuthSessionAsync', () => {
89
89
await openAuthSessionAsync ( mockUrl , mockRedirectUrls , true ) ;
90
90
91
91
expect ( mockNativeModule ) . toHaveBeenCalledWith (
92
- 'https://example.com/auth' ,
92
+ mockUrl ,
93
93
mockDeepLinkUrl ,
94
94
true ,
95
95
) ;
@@ -106,7 +106,7 @@ describe('openAuthSessionAsync', () => {
106
106
await openAuthSessionAsync ( mockUrl , redirectUrls ) ;
107
107
108
108
expect ( mockNativeModule ) . toHaveBeenCalledWith (
109
- 'https://example.com/auth' ,
109
+ mockUrl ,
110
110
'myapp://callback' ,
111
111
false ,
112
112
) ;
@@ -118,11 +118,7 @@ describe('openAuthSessionAsync', () => {
118
118
119
119
await openAuthSessionAsync ( mockUrl , webOnlyUrls ) ;
120
120
121
- expect ( mockNativeModule ) . toHaveBeenCalledWith (
122
- 'https://example.com/auth' ,
123
- undefined ,
124
- false ,
125
- ) ;
121
+ expect ( mockNativeModule ) . toHaveBeenCalledWith ( mockUrl , undefined , false ) ;
126
122
} ) ;
127
123
} ) ;
128
124
@@ -153,7 +149,7 @@ describe('openAuthSessionAsync', () => {
153
149
154
150
const result = await openAuthSessionAsync ( mockUrl , mockRedirectUrls ) ;
155
151
156
- expect ( mockNativeModule ) . toHaveBeenCalledWith ( 'https://example.com/auth' ) ;
152
+ expect ( mockNativeModule ) . toHaveBeenCalledWith ( mockUrl ) ;
157
153
expect ( mockAppState . addEventListener ) . toHaveBeenCalledWith (
158
154
'change' ,
159
155
expect . any ( Function ) ,
0 commit comments