Skip to content

Commit 2046f68

Browse files
committed
fix object mapper date parsing in tests
1 parent e71f7d7 commit 2046f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Mapping/ObjectMapperTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe("ObjectMapper", function () {
333333
function assertArrayEntry(actual, expected) {
334334
assert.strictEqual(actual["name"], expected["name"]);
335335
assert.strictEqual(
336-
actual["lastActedAt"].valueOf(), new Date(expected["lastActedAt"]).valueOf());
336+
actual["lastActedAt"].valueOf(), DateUtil.parse(expected["lastActedAt"]).valueOf());
337337
}
338338

339339
for (let i = 0; i < result.characters[0].length; i++) {

0 commit comments

Comments
 (0)