@@ -131,44 +131,6 @@ describe('page-load saga', () => {
131
131
expect ( history . replace ) . toHaveBeenCalledWith ( { pathname : '/restricted' } ) ;
132
132
expect ( storeState . pageload . isComplete ) . toBe ( true ) ;
133
133
} ) ;
134
-
135
- describe ( 'showAndroidDownload' , ( ) => {
136
- function subject ( path : string , userAgent : string ) {
137
- const initialState = { pageload : { showAndroidDownload : false } } ;
138
- return expectSaga ( saga )
139
- . provide ( [
140
- [ call ( getHistory ) , new StubHistory ( path ) ] ,
141
- [ call ( getCurrentUser ) , false ] ,
142
- [ call ( getNavigator ) , stubNavigator ( userAgent ) ] ,
143
- [ spawn ( redirectOnUserLogin ) , null ] ,
144
- ] )
145
- . withReducer ( rootReducer , initialState as any ) ;
146
- }
147
-
148
- it ( 'is false if not on a configured page' , async ( ) => {
149
- const { storeState } = await subject ( '/' , 'Android' ) . run ( ) ;
150
-
151
- expect ( storeState . pageload . showAndroidDownload ) . toBe ( false ) ;
152
- } ) ;
153
-
154
- it ( 'is false if not an android user agent' , async ( ) => {
155
- const { storeState } = await subject ( '/login' , 'Chrome' ) . run ( ) ;
156
-
157
- expect ( storeState . pageload . showAndroidDownload ) . toBe ( false ) ;
158
- } ) ;
159
-
160
- it ( 'is true if the user agent matches and is login page' , async ( ) => {
161
- const { storeState } = await subject ( '/login' , 'Android' ) . run ( ) ;
162
-
163
- expect ( storeState . pageload . showAndroidDownload ) . toBe ( true ) ;
164
- } ) ;
165
-
166
- it ( 'is true if the user agent matches and is get-access page' , async ( ) => {
167
- const { storeState } = await subject ( '/get-access' , 'Android' ) . run ( ) ;
168
-
169
- expect ( storeState . pageload . showAndroidDownload ) . toBe ( true ) ;
170
- } ) ;
171
- } ) ;
172
134
} ) ;
173
135
174
136
describe ( redirectToEntryPath , ( ) => {
0 commit comments