From 2c90d2be8b94d98df7f60435004897a0c35bfba6 Mon Sep 17 00:00:00 2001
From: Will Hunt <will@half-shot.uk>
Date: Sun, 19 May 2019 18:21:28 +0100
Subject: [PATCH] Check timestamp value, rather than getTime

---
 test/test_matrixeventprocessor.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts
index dd1a5d2..e5dbf0c 100644
--- a/test/test_matrixeventprocessor.ts
+++ b/test/test_matrixeventprocessor.ts
@@ -748,7 +748,8 @@ This is the reply`,
                 sender: "@test:localhost",
                 type: "m.room.message",
             } as IMatrixEvent, mockChannel as any);
-            expect(result!.timestamp!.getTime()).to.be.equal(TEST_TIMESTAMP);
+            // NOTE: Due to https://github.com/discordjs/discord.js/issues/3283, the typing is wrong here.
+            expect(result!.timestamp!).to.be.equal(TEST_TIMESTAMP);
         });
         it("should add field for discord replies", async () => {
             const processor = createMatrixEventProcessor();
-- 
GitLab