Skip to content

Commit

Permalink
Disable failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Dec 31, 2024
1 parent 962e118 commit 549a774
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/lib/services/contents/entry/transformations.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 549a774

Please sign in to comment.