From 549a774c5e8435b248f20267237efd9e5bc31aae Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Mon, 30 Dec 2024 21:46:12 -0500 Subject: [PATCH] Disable failing test --- .../contents/entry/transformations.spec.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lib/services/contents/entry/transformations.spec.js b/src/lib/services/contents/entry/transformations.spec.js index ddc381e6..8d1d8c9a 100644 --- a/src/lib/services/contents/entry/transformations.spec.js +++ b/src/lib/services/contents/entry/transformations.spec.js @@ -91,12 +91,14 @@ describe('Test applyTransformation()', () => { transformation: "date('LLL')", }), ).toBe('January 23, 2024 1:23 AM'); - expect( - applyTransformation({ - value: '2024-01-23T01:23:45-05:00', - transformation: "date('YYYY-MM-DD-HH-mm')", - }), - ).toBe('2024-01-23-01-23'); + // @todo Fix the test that depends on the computer’s time zone. We could use `moment-timezone` + // but will soon migrate to Day.js + // expect( + // applyTransformation({ + // value: '2024-01-23T01:23:45-05:00', + // transformation: "date('YYYY-MM-DD-HH-mm')", + // }), + // ).toBe('2024-01-23-01-23'); expect( applyTransformation({ value: '2024-01-23T01:23:45-05:00',