test: finish readonly fixture compatibility for CI check

This commit is contained in:
Brian Mendonca
2026-02-21 15:14:37 -07:00
committed by Peter Steinberger
parent c7c047287e
commit 828f4e18e0
3 changed files with 20 additions and 9 deletions

View File

@@ -727,7 +727,10 @@ describe("discord reaction notification gating", () => {
expect(
shouldEmitDiscordReactionNotification({
...testCase.input,
allowlist: testCase.input.allowlist ? [...testCase.input.allowlist] : undefined,
allowlist:
"allowlist" in testCase.input && testCase.input.allowlist
? [...testCase.input.allowlist]
: undefined,
}),
testCase.name,
).toBe(testCase.expected);