@@ -6,7 +6,7 @@ import * as formatTimeOffsetModule from '../format-time-offset';
66describe ( 'formatDateLocalized' , ( ) => {
77 beforeEach ( ( ) => {
88 jest . clearAllMocks ( ) ;
9- jest . spyOn ( formatTimeOffsetModule , 'formatTimeOffsetLocalized' ) . mockReturnValue ( 'UTCZ ' ) ;
9+ jest . spyOn ( formatTimeOffsetModule , 'formatTimeOffsetLocalized' ) . mockReturnValue ( 'UTC+00:00 ' ) ;
1010 } ) ;
1111
1212 afterEach ( ( ) => {
@@ -32,7 +32,7 @@ describe('formatDateLocalized', () => {
3232 locale : 'en-US' ,
3333 } ) ;
3434
35- expect ( result ) . toMatch ( / ^ J u n e 1 5 , 2 0 2 3 , 1 2 : 0 0 : 0 0 U T C Z $ / ) ;
35+ expect ( result ) . toMatch ( / ^ J u n e 1 5 , 2 0 2 3 , 1 2 : 0 0 : 0 0 U T C \+ 0 0 : 0 0 $ / ) ;
3636 } ) ;
3737
3838 test ( 'formats date only when isDateOnly is true' , ( ) => {
@@ -66,7 +66,7 @@ describe('formatDateLocalized', () => {
6666 locale : 'ja' ,
6767 } ) ;
6868
69- expect ( result ) . toMatch ( / ^ 2 0 2 3 年 6 月 1 5 日 1 2 : 0 0 : 0 0 U T C Z $ / ) ;
69+ expect ( result ) . toMatch ( / ^ 2 0 2 3 年 6 月 1 5 日 1 2 : 0 0 : 0 0 U T C \+ 0 0 : 0 0 $ / ) ;
7070 } ) ;
7171
7272 test ( 'handles non-ISO formatted date strings' , ( ) => {
@@ -77,7 +77,7 @@ describe('formatDateLocalized', () => {
7777 locale : 'en-US' ,
7878 } ) ;
7979
80- expect ( result ) . toMatch ( / ^ J u n e 1 5 , 2 0 2 3 , 1 2 : 0 0 : 0 0 U T C Z $ / ) ;
80+ expect ( result ) . toMatch ( / ^ J u n e 1 5 , 2 0 2 3 , 1 2 : 0 0 : 0 0 U T C \+ 0 0 : 0 0 $ / ) ;
8181 } ) ;
8282
8383 //todo determine how to handle this failing
0 commit comments