Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Nov 3, 2024
1 parent c6a9fef commit 59a55dd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
30 changes: 18 additions & 12 deletions test/structures/Role.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});
});
Expand Down
4 changes: 3 additions & 1 deletion test/structures/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ describe("User", function () {
...TEST_DATA.USER,
avatar: "deadbeef",
});
expect(user._originalAvatarHash).to.equal("deadbeef");
expect(user._originalAvatarHash).to.equal(
"000000000000000000000000deadbeef",
);
});
});

Expand Down

0 comments on commit 59a55dd

Please sign in to comment.