@@ -15,7 +15,7 @@ const format = 'dddd D, MMMM'
15
15
it ( 'Uses spanish locale through constructor' , ( ) => { // not recommend
16
16
expect ( dayjs ( '2018-4-28' , { locale : es } )
17
17
. format ( format ) )
18
- . toBe ( 'Sábado 28, Abril' )
18
+ . toBe ( 'sábado 28, Abril' )
19
19
} )
20
20
21
21
it ( 'set locale for one instance only' , ( ) => {
@@ -25,7 +25,7 @@ it('set locale for one instance only', () => {
25
25
26
26
expect ( dayjs ( '2018-4-28' )
27
27
. locale ( es ) . format ( format ) )
28
- . toBe ( 'Sábado 28, Abril' )
28
+ . toBe ( 'sábado 28, Abril' )
29
29
30
30
expect ( dayjs ( '2018-4-28' )
31
31
. format ( format ) )
@@ -38,7 +38,7 @@ it('set global locale', () => {
38
38
. toBe ( 'Saturday 28, April' )
39
39
dayjs . locale ( es )
40
40
expect ( dayjs ( '2018-4-28' ) . format ( format ) )
41
- . toBe ( 'Sábado 28, Abril' )
41
+ . toBe ( 'sábado 28, Abril' )
42
42
dayjs . locale ( 'en' )
43
43
expect ( dayjs ( '2018-4-28' ) . format ( format ) )
44
44
. toBe ( 'Saturday 28, April' )
@@ -50,10 +50,10 @@ it('immutable instance locale', () => {
50
50
expect ( origin . format ( format ) )
51
51
. toBe ( 'Saturday 28, April' )
52
52
expect ( origin . locale ( 'es' ) . format ( format ) )
53
- . toBe ( 'Sábado 28, Abril' )
53
+ . toBe ( 'sábado 28, Abril' )
54
54
const changed = origin . locale ( 'es' )
55
55
expect ( changed . format ( format ) )
56
- . toBe ( 'Sábado 28, Abril' )
56
+ . toBe ( 'sábado 28, Abril' )
57
57
expect ( origin . format ( format ) )
58
58
. toBe ( 'Saturday 28, April' )
59
59
} )
@@ -73,29 +73,29 @@ describe('Instance locale inheritance', () => {
73
73
74
74
it ( 'Clone' , ( ) => {
75
75
expect ( esDayjs . clone ( ) . format ( format ) )
76
- . toBe ( 'Sábado 28, Abril' )
76
+ . toBe ( 'sábado 28, Abril' )
77
77
expect ( dayjs ( esDayjs ) . format ( format ) )
78
- . toBe ( 'Sábado 28, Abril' )
78
+ . toBe ( 'sábado 28, Abril' )
79
79
} )
80
80
81
81
it ( 'StartOf EndOf' , ( ) => {
82
82
expect ( esDayjs . startOf ( 'year' ) . format ( format ) )
83
- . toBe ( 'Lunes 1, Enero' )
83
+ . toBe ( 'lunes 1, Enero' )
84
84
expect ( esDayjs . endOf ( 'day' ) . format ( format ) )
85
- . toBe ( 'Sábado 28, Abril' )
85
+ . toBe ( 'sábado 28, Abril' )
86
86
} )
87
87
88
88
it ( 'Set' , ( ) => {
89
89
expect ( esDayjs . set ( 'year' , 2017 ) . format ( format ) )
90
- . toBe ( 'Viernes 28, Abril' )
90
+ . toBe ( 'viernes 28, Abril' )
91
91
} )
92
92
93
93
it ( 'Add' , ( ) => {
94
94
expect ( esDayjs . add ( 1 , 'year' ) . format ( format ) )
95
- . toBe ( 'Domingo 28, Abril' )
95
+ . toBe ( 'domingo 28, Abril' )
96
96
expect ( esDayjs . add ( 1 , 'month' ) . format ( format ) )
97
- . toBe ( 'Lunes 28, Mayo' )
97
+ . toBe ( 'lunes 28, Mayo' )
98
98
expect ( esDayjs . add ( 1 , 'minute' ) . format ( format ) )
99
- . toBe ( 'Sábado 28, Abril' )
99
+ . toBe ( 'sábado 28, Abril' )
100
100
} )
101
101
} )
0 commit comments