@@ -17,7 +17,7 @@ const NOT_SUPPORTED_LOCALE_STRING = 'not_supported_locale_string'
17
17
it ( 'Uses spanish locale through constructor' , ( ) => { // not recommend
18
18
expect ( dayjs ( '2018-4-28' , { locale : es } )
19
19
. format ( format ) )
20
- . toBe ( 'sábado 28, Abril ' )
20
+ . toBe ( 'sábado 28, abril ' )
21
21
} )
22
22
23
23
it ( 'set locale for one instance only' , ( ) => {
@@ -27,7 +27,7 @@ it('set locale for one instance only', () => {
27
27
28
28
expect ( dayjs ( '2018-4-28' )
29
29
. locale ( es ) . format ( format ) )
30
- . toBe ( 'sábado 28, Abril ' )
30
+ . toBe ( 'sábado 28, abril ' )
31
31
32
32
expect ( dayjs ( '2018-4-28' )
33
33
. format ( format ) )
@@ -40,7 +40,7 @@ it('set global locale', () => {
40
40
. toBe ( 'Saturday 28, April' )
41
41
dayjs . locale ( es )
42
42
expect ( dayjs ( '2018-4-28' ) . format ( format ) )
43
- . toBe ( 'sábado 28, Abril ' )
43
+ . toBe ( 'sábado 28, abril ' )
44
44
dayjs . locale ( 'en' )
45
45
expect ( dayjs ( '2018-4-28' ) . format ( format ) )
46
46
. toBe ( 'Saturday 28, April' )
@@ -63,10 +63,10 @@ it('immutable instance locale', () => {
63
63
expect ( origin . format ( format ) )
64
64
. toBe ( 'Saturday 28, April' )
65
65
expect ( origin . locale ( 'es' ) . format ( format ) )
66
- . toBe ( 'sábado 28, Abril ' )
66
+ . toBe ( 'sábado 28, abril ' )
67
67
const changed = origin . locale ( 'es' )
68
68
expect ( changed . format ( format ) )
69
- . toBe ( 'sábado 28, Abril ' )
69
+ . toBe ( 'sábado 28, abril ' )
70
70
expect ( origin . format ( format ) )
71
71
. toBe ( 'Saturday 28, April' )
72
72
} )
@@ -86,30 +86,30 @@ describe('Instance locale inheritance', () => {
86
86
87
87
it ( 'Clone' , ( ) => {
88
88
expect ( esDayjs . clone ( ) . format ( format ) )
89
- . toBe ( 'sábado 28, Abril ' )
89
+ . toBe ( 'sábado 28, abril ' )
90
90
expect ( dayjs ( esDayjs ) . format ( format ) )
91
- . toBe ( 'sábado 28, Abril ' )
91
+ . toBe ( 'sábado 28, abril ' )
92
92
} )
93
93
94
94
it ( 'StartOf EndOf' , ( ) => {
95
95
expect ( esDayjs . startOf ( 'year' ) . format ( format ) )
96
- . toBe ( 'lunes 1, Enero ' )
96
+ . toBe ( 'lunes 1, enero ' )
97
97
expect ( esDayjs . endOf ( 'day' ) . format ( format ) )
98
- . toBe ( 'sábado 28, Abril ' )
98
+ . toBe ( 'sábado 28, abril ' )
99
99
} )
100
100
101
101
it ( 'Set' , ( ) => {
102
102
expect ( esDayjs . set ( 'year' , 2017 ) . format ( format ) )
103
- . toBe ( 'viernes 28, Abril ' )
103
+ . toBe ( 'viernes 28, abril ' )
104
104
} )
105
105
106
106
it ( 'Add' , ( ) => {
107
107
expect ( esDayjs . add ( 1 , 'year' ) . format ( format ) )
108
- . toBe ( 'domingo 28, Abril ' )
108
+ . toBe ( 'domingo 28, abril ' )
109
109
expect ( esDayjs . add ( 1 , 'month' ) . format ( format ) )
110
- . toBe ( 'lunes 28, Mayo ' )
110
+ . toBe ( 'lunes 28, mayo ' )
111
111
expect ( esDayjs . add ( 1 , 'minute' ) . format ( format ) )
112
- . toBe ( 'sábado 28, Abril ' )
112
+ . toBe ( 'sábado 28, abril ' )
113
113
} )
114
114
115
115
it ( 'dayjs.locale() returns locale name' , ( ) => {
0 commit comments