@@ -17,7 +17,7 @@ const NOT_SUPPORTED_LOCALE_STRING = 'not_supported_locale_string'
1717it ( 'Uses spanish locale through constructor' , ( ) => { // not recommend
1818 expect ( dayjs ( '2018-4-28' , { locale : es } )
1919 . format ( format ) )
20- . toBe ( 'sábado 28, Abril ' )
20+ . toBe ( 'sábado 28, abril ' )
2121} )
2222
2323it ( 'set locale for one instance only' , ( ) => {
@@ -27,7 +27,7 @@ it('set locale for one instance only', () => {
2727
2828 expect ( dayjs ( '2018-4-28' )
2929 . locale ( es ) . format ( format ) )
30- . toBe ( 'sábado 28, Abril ' )
30+ . toBe ( 'sábado 28, abril ' )
3131
3232 expect ( dayjs ( '2018-4-28' )
3333 . format ( format ) )
@@ -40,7 +40,7 @@ it('set global locale', () => {
4040 . toBe ( 'Saturday 28, April' )
4141 dayjs . locale ( es )
4242 expect ( dayjs ( '2018-4-28' ) . format ( format ) )
43- . toBe ( 'sábado 28, Abril ' )
43+ . toBe ( 'sábado 28, abril ' )
4444 dayjs . locale ( 'en' )
4545 expect ( dayjs ( '2018-4-28' ) . format ( format ) )
4646 . toBe ( 'Saturday 28, April' )
@@ -63,10 +63,10 @@ it('immutable instance locale', () => {
6363 expect ( origin . format ( format ) )
6464 . toBe ( 'Saturday 28, April' )
6565 expect ( origin . locale ( 'es' ) . format ( format ) )
66- . toBe ( 'sábado 28, Abril ' )
66+ . toBe ( 'sábado 28, abril ' )
6767 const changed = origin . locale ( 'es' )
6868 expect ( changed . format ( format ) )
69- . toBe ( 'sábado 28, Abril ' )
69+ . toBe ( 'sábado 28, abril ' )
7070 expect ( origin . format ( format ) )
7171 . toBe ( 'Saturday 28, April' )
7272} )
@@ -86,30 +86,30 @@ describe('Instance locale inheritance', () => {
8686
8787 it ( 'Clone' , ( ) => {
8888 expect ( esDayjs . clone ( ) . format ( format ) )
89- . toBe ( 'sábado 28, Abril ' )
89+ . toBe ( 'sábado 28, abril ' )
9090 expect ( dayjs ( esDayjs ) . format ( format ) )
91- . toBe ( 'sábado 28, Abril ' )
91+ . toBe ( 'sábado 28, abril ' )
9292 } )
9393
9494 it ( 'StartOf EndOf' , ( ) => {
9595 expect ( esDayjs . startOf ( 'year' ) . format ( format ) )
96- . toBe ( 'lunes 1, Enero ' )
96+ . toBe ( 'lunes 1, enero ' )
9797 expect ( esDayjs . endOf ( 'day' ) . format ( format ) )
98- . toBe ( 'sábado 28, Abril ' )
98+ . toBe ( 'sábado 28, abril ' )
9999 } )
100100
101101 it ( 'Set' , ( ) => {
102102 expect ( esDayjs . set ( 'year' , 2017 ) . format ( format ) )
103- . toBe ( 'viernes 28, Abril ' )
103+ . toBe ( 'viernes 28, abril ' )
104104 } )
105105
106106 it ( 'Add' , ( ) => {
107107 expect ( esDayjs . add ( 1 , 'year' ) . format ( format ) )
108- . toBe ( 'domingo 28, Abril ' )
108+ . toBe ( 'domingo 28, abril ' )
109109 expect ( esDayjs . add ( 1 , 'month' ) . format ( format ) )
110- . toBe ( 'lunes 28, Mayo ' )
110+ . toBe ( 'lunes 28, mayo ' )
111111 expect ( esDayjs . add ( 1 , 'minute' ) . format ( format ) )
112- . toBe ( 'sábado 28, Abril ' )
112+ . toBe ( 'sábado 28, abril ' )
113113 } )
114114
115115 it ( 'dayjs.locale() returns locale name' , ( ) => {
0 commit comments