@@ -78,18 +78,6 @@ describe('AppAuth', () => {
78
78
} ) . toThrow ( 'Config error: clientId must be a string' ) ;
79
79
} ) ;
80
80
81
- it ( 'throws an error when no scopes are passed in' , ( ) => {
82
- expect ( ( ) => {
83
- authorize ( { ...config , scopes : undefined } ) ;
84
- } ) . toThrow ( 'Scope error: please add at least one scope' ) ;
85
- } ) ;
86
-
87
- it ( 'throws an error when an empty scope array is passed in' , ( ) => {
88
- expect ( ( ) => {
89
- authorize ( { ...config , scopes : [ ] } ) ;
90
- } ) . toThrow ( 'Scope error: please add at least one scope' ) ;
91
- } ) ;
92
-
93
81
it ( 'calls the native wrapper with the correct args on iOS' , ( ) => {
94
82
authorize ( config ) ;
95
83
expect ( mockAuthorize ) . toHaveBeenCalledWith (
@@ -206,18 +194,6 @@ describe('AppAuth', () => {
206
194
} ) . toThrow ( 'Please pass in a refresh token' ) ;
207
195
} ) ;
208
196
209
- it ( 'throws an error when no scopes are passed in' , ( ) => {
210
- expect ( ( ) => {
211
- refresh ( { ...config , scopes : undefined } , { refreshToken : 'such-token' } ) ;
212
- } ) . toThrow ( 'Scope error: please add at least one scope' ) ;
213
- } ) ;
214
-
215
- it ( 'throws an error when an empty scope array is passed in' , ( ) => {
216
- expect ( ( ) => {
217
- refresh ( { ...config , scopes : [ ] } , { refreshToken : 'such-token' } ) ;
218
- } ) . toThrow ( 'Scope error: please add at least one scope' ) ;
219
- } ) ;
220
-
221
197
it ( 'calls the native wrapper with the correct args on iOS' , ( ) => {
222
198
refresh ( { ...config } , { refreshToken : 'such-token' } ) ;
223
199
expect ( mockRefresh ) . toHaveBeenCalledWith (
0 commit comments