From 94598f6d62b001ec492ab8b07382b0f308b7b541 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 27 Jun 2022 13:30:42 +0200 Subject: [PATCH] Update formatDate test --- packages/date/src/test/formatDate.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/date/src/test/formatDate.js b/packages/date/src/test/formatDate.js index a986b073152b..d366c0abbf29 100644 --- a/packages/date/src/test/formatDate.js +++ b/packages/date/src/test/formatDate.js @@ -35,11 +35,12 @@ describe('date/formatDate', () => { resetSettings(); }); - it('should return 2020-05-02 with no formatting options', () => { + // Uses DEFAULT_DATE_SETTINGS.dateFormat + it('should return May 2, 2020 with no formatting options', () => { const dateString = '2020-05-02T10:47:26'; const formattedDate = formatDate(dateString); - expect(formattedDate).toBe('2020-05-02'); + expect(formattedDate).toBe('May 2, 2020'); }); it('should return "May 2, 2020" with "F j, Y" formatting options', () => {