From 8b420d8425bb45eb651d8ab0fa2e142af6300af9 Mon Sep 17 00:00:00 2001 From: Paul Hanneforth Date: Mon, 21 Jun 2021 19:48:39 +0200 Subject: [PATCH] added testing for new function --- __tests__/notification.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__tests__/notification.test.js b/__tests__/notification.test.js index 29da6ae..dc5a82b 100644 --- a/__tests__/notification.test.js +++ b/__tests__/notification.test.js @@ -26,6 +26,10 @@ describe("testing notifications", () => { await bot.directMessageUser(testingUsername, testingMessage); }); + test(`it should get all direct messages from ${testingUsername}`, async () => { + await bot.getChannelMessages(testingUsername); + }); + test("it should logout", async () => { await bot.logout(); });