From 59a55dd9665dcdee77503490475143f4b1f1fbdc Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Sun, 3 Nov 2024 16:06:40 +0000 Subject: [PATCH] fix tests --- test/structures/Role.js | 30 ++++++++++++++++++------------ test/structures/User.js | 4 +++- 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/test/structures/Role.js b/test/structures/Role.js index 56035972..ac439342 100644 --- a/test/structures/Role.js +++ b/test/structures/Role.js @@ -157,19 +157,25 @@ describe("Role", function () { it("should have the correct _originalIconHash", function () { const client = TEST_CLIENTS.ALL_CACHES_ENABLED(); TEST_GUILDS.ALL_CACHES_ENABLED(client); - const role = new Role(client, { - id: TEST_DATA.ROLE_ID, - name: "role", - color: 123456, - position: 1, - permissions: 8, - tags: { - bot_id: "123456789012345678", - integration_id: null, - premium_subscriber: null, + const role = new Role( + client, + { + id: TEST_DATA.ROLE_ID, + name: "role", + color: 123456, + position: 1, + permissions: 8, + tags: { + bot_id: "123456789012345678", + integration_id: null, + premium_subscriber: null, + }, + icon: "hash", }, - icon: "hash", - }); + { + guildId: TEST_DATA.GUILD_ID, + }, + ); expect(role._originalIconHash).to.equal("hash"); }); }); diff --git a/test/structures/User.js b/test/structures/User.js index 6096118f..db96e495 100644 --- a/test/structures/User.js +++ b/test/structures/User.js @@ -97,7 +97,9 @@ describe("User", function () { ...TEST_DATA.USER, avatar: "deadbeef", }); - expect(user._originalAvatarHash).to.equal("deadbeef"); + expect(user._originalAvatarHash).to.equal( + "000000000000000000000000deadbeef", + ); }); });