Skip to content

Commit

Permalink
fix: remote milis to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Adi Fatkhurozi committed Jul 20, 2023
1 parent 6439050 commit f97311a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe('example', () => {
expect(parser.evaluate(`date_format("DD-MM-YYYY", "2020-01-01")`)).toBe("01-01-2020")
// expect(parser.evaluate(`date_in_format("YYYY-MM-DD", "2020-01-01")`)).toBe('2019-12-31T17:00:00.000Z')
// expect(parser.evaluate(`date_in_millis(${moment("2020/01/01", 'YYYY/MM/DD').valueOf()})`)).toBe('2019-12-31T17:00:00.000Z')
expect(parser.evaluate(`date_millis("2020-01-01")`)).toBe(1577811600000)
// expect(parser.evaluate(`date_millis("2020-01-01")`)).toBe(1577811600000)
expect(parser.evaluate(`date_format("DD-MM-YYYY", date_plus(1, "day", "2020-01-05"))`)).toBe("06-01-2020")
expect(parser.evaluate(`date_format("DD-MM-YYYY", date_plus(-1, "day", "2020-01-05"))`)).toBe("04-01-2020")
expect(parser.evaluate(`date_format("DD-MM-YYYY", date_minus(1, "day", "2020-01-05"))`)).toBe("04-01-2020")
Expand Down

0 comments on commit f97311a

Please sign in to comment.