@@ -5,30 +5,29 @@ describe("getUserPoolDomainPrefix", () => {
5
5
const shortPrefix = "hello" ;
6
6
const domainPrefix = getUserPoolDomainPrefix ( shortPrefix ) ;
7
7
8
- expect ( domainPrefix . length ) . toEqual ( 32 + shortPrefix . length + 1 )
8
+ expect ( domainPrefix . length ) . toEqual ( 32 + shortPrefix . length + 1 ) ;
9
9
} ) ;
10
10
11
11
it ( "should include the full prefix where there is space for a 5 character hash" , ( ) => {
12
- const prefix55 = new Array ( 55 + 1 ) . join ( "#" ) ;
12
+ const prefix55 = new Array ( 55 + 1 ) . join ( "#" ) ;
13
13
const domainPrefix = getUserPoolDomainPrefix ( prefix55 ) ;
14
14
15
- expect ( domainPrefix . includes ( prefix55 ) ) . toEqual ( true )
16
- expect ( domainPrefix . length ) . toEqual ( 63 )
15
+ expect ( domainPrefix . includes ( prefix55 ) ) . toEqual ( true ) ;
16
+ expect ( domainPrefix . length ) . toEqual ( 63 ) ;
17
17
} ) ;
18
18
19
19
it ( "should not include the full prefix where there is not space for a 5 character hash" , ( ) => {
20
- const prefix56 = new Array ( 58 + 1 ) . join ( "#" ) ;
20
+ const prefix56 = new Array ( 58 + 1 ) . join ( "#" ) ;
21
21
const domainPrefix = getUserPoolDomainPrefix ( prefix56 ) ;
22
22
23
- expect ( domainPrefix . includes ( prefix56 ) ) . toEqual ( false )
24
- expect ( domainPrefix . length ) . toEqual ( 63 )
25
- } )
23
+ expect ( domainPrefix . includes ( prefix56 ) ) . toEqual ( false ) ;
24
+ expect ( domainPrefix . length ) . toEqual ( 63 ) ;
25
+ } ) ;
26
26
27
27
it ( "should be 63 characters long even with a very long prefix" , ( ) => {
28
- const prefix = new Array ( 63 + 1 ) . join ( "#" ) ;
28
+ const prefix = new Array ( 63 + 1 ) . join ( "#" ) ;
29
29
const domainPrefix = getUserPoolDomainPrefix ( prefix ) ;
30
30
31
- expect ( domainPrefix . length ) . toEqual ( 63 )
32
- } )
33
-
31
+ expect ( domainPrefix . length ) . toEqual ( 63 ) ;
32
+ } ) ;
34
33
} ) ;
0 commit comments