mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:21:26 +00:00
test: fix readonly typing regressions in check baseline
This commit is contained in:
committed by
Peter Steinberger
parent
0e1aa77928
commit
c7c047287e
@@ -724,9 +724,13 @@ describe("discord reaction notification gating", () => {
|
||||
] as const;
|
||||
|
||||
for (const testCase of cases) {
|
||||
expect(shouldEmitDiscordReactionNotification(testCase.input), testCase.name).toBe(
|
||||
testCase.expected,
|
||||
);
|
||||
expect(
|
||||
shouldEmitDiscordReactionNotification({
|
||||
...testCase.input,
|
||||
allowlist: testCase.input.allowlist ? [...testCase.input.allowlist] : undefined,
|
||||
}),
|
||||
testCase.name,
|
||||
).toBe(testCase.expected);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1040,7 +1044,7 @@ describe("discord reaction notification modes", () => {
|
||||
const guildEntries = makeEntries({
|
||||
[guildId]: {
|
||||
reactionNotifications: testCase.reactionNotifications,
|
||||
users: testCase.users,
|
||||
users: testCase.users ? [...testCase.users] : undefined,
|
||||
},
|
||||
});
|
||||
const listener = new DiscordReactionListener(makeReactionListenerParams({ guildEntries }));
|
||||
|
||||
Reference in New Issue
Block a user