File tree Expand file tree Collapse file tree 4 files changed +28
-25
lines changed Expand file tree Collapse file tree 4 files changed +28
-25
lines changed Original file line number Diff line number Diff line change 19
19
* Supported providers
20
20
*/
21
21
export enum ProviderId {
22
- ANONYMOUS = 'anonymous' ,
23
- CUSTOM = 'custom' ,
24
- FACEBOOK = 'facebook.com' ,
25
- FIREBASE = 'firebase' ,
26
- GITHUB = 'github.com' ,
27
- GOOGLE = 'google.com' ,
28
- PASSWORD = 'password' ,
29
- PHONE = 'phone' ,
30
- TWITTER = 'twitter.com'
31
- }
32
-
22
+ ANONYMOUS = 'anonymous' ,
23
+ CUSTOM = 'custom' ,
24
+ FACEBOOK = 'facebook.com' ,
25
+ FIREBASE = 'firebase' ,
26
+ GITHUB = 'github.com' ,
27
+ GOOGLE = 'google.com' ,
28
+ PASSWORD = 'password' ,
29
+ PHONE = 'phone' ,
30
+ TWITTER = 'twitter.com'
31
+ }
Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ export interface Config {
27
27
export interface Auth {
28
28
readonly name : AppName ;
29
29
readonly config : Config ;
30
- }
30
+ }
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
export interface UserInfo {
19
- readonly uid : string ;
19
+ readonly uid : string ;
20
20
}
21
21
22
22
export interface UserParameters {
23
- uid : string ;
23
+ uid : string ;
24
24
}
25
25
26
26
export class User implements UserInfo {
27
27
uid : string ;
28
-
28
+
29
29
constructor ( params : UserParameters ) {
30
- this . uid = params . uid ;
31
- }
32
- }
30
+ this . uid = params . uid ;
31
+ }
32
+ }
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { expect } from 'chai' ;
19
- import { AUTH_ERROR_FACTORY , AuthErrorCode } from " ../../src/core/errors" ;
19
+ import { AUTH_ERROR_FACTORY , AuthErrorCode } from ' ../../src/core/errors' ;
20
20
21
21
describe ( 'AUTH_ERROR_FACTORY' , ( ) => {
22
- it ( 'should create an Auth namespaced FirebaseError' , ( ) => {
23
- const error = AUTH_ERROR_FACTORY . create ( AuthErrorCode . INTERNAL_ERROR , { appName : 'my-app' } ) ;
24
- expect ( error . code ) . to . eq ( 'auth/internal-error' ) ;
25
- expect ( error . message ) . to . eq ( 'Firebase: An internal AuthError has occurred. (auth/internal-error).' ) ;
26
- expect ( error . name ) . to . eq ( 'FirebaseError' ) ;
22
+ it ( 'should create an Auth namespaced FirebaseError' , ( ) => {
23
+ const error = AUTH_ERROR_FACTORY . create ( AuthErrorCode . INTERNAL_ERROR , {
24
+ appName : 'my-app'
27
25
} ) ;
28
- } ) ;
26
+ expect ( error . code ) . to . eq ( 'auth/internal-error' ) ;
27
+ expect ( error . message ) . to . eq (
28
+ 'Firebase: An internal AuthError has occurred. (auth/internal-error).'
29
+ ) ;
30
+ expect ( error . name ) . to . eq ( 'FirebaseError' ) ;
31
+ } ) ;
32
+ } ) ;
You can’t perform that action at this time.
0 commit comments