mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-17 10:46:01 +00:00
test: tighten discord channel resolver assertions
This commit is contained in:
@@ -122,13 +122,14 @@ describe("resolveDiscordChannelAllowlist", () => {
|
||||
entry: "111/222",
|
||||
});
|
||||
|
||||
expect(res[0]).toMatchObject({
|
||||
expect(res[0]).toEqual({
|
||||
input: "111/222",
|
||||
resolved: true,
|
||||
guildId: "111",
|
||||
guildName: "Guild One",
|
||||
channelId: "222",
|
||||
channelName: "general",
|
||||
guildName: "Guild One",
|
||||
archived: undefined,
|
||||
});
|
||||
});
|
||||
|
||||
@@ -142,7 +143,7 @@ describe("resolveDiscordChannelAllowlist", () => {
|
||||
entry: "111/222",
|
||||
});
|
||||
|
||||
expect(res[0]).toMatchObject({
|
||||
expect(res[0]).toEqual({
|
||||
input: "111/222",
|
||||
resolved: false,
|
||||
guildId: "111",
|
||||
|
||||
Reference in New Issue
Block a user