Skip to content

Commit

Permalink
fix: date extension beginningOf test
Browse files Browse the repository at this point in the history
  • Loading branch information
valya committed Nov 8, 2022
1 parent eb376c4 commit a763c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workflow/test/ExpressionExtensions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Data Transformation Functions', () => {
});

test('.beginningOf("week") should work correctly on a date', () => {
expect(evaluate('={{DateTime.now().beginningOf("week")}}')).toEqual(
expect(evaluate('={{(new Date).beginningOf("week")}}')).toEqual(
dateExtensions.functions.beginningOf(new Date(), ['week']),
);
});
Expand Down

0 comments on commit a763c62

Please sign in to comment.