diff --git a/src/plugin-sdk/allow-from.test.ts b/src/plugin-sdk/allow-from.test.ts index 9859732ab32..0353534cb2f 100644 --- a/src/plugin-sdk/allow-from.test.ts +++ b/src/plugin-sdk/allow-from.test.ts @@ -4,6 +4,7 @@ import { formatNormalizedAllowFromEntries, isAllowedParsedChatSender, isNormalizedSenderAllowed, + mapAllowlistResolutionInputs, } from "./allow-from.js"; function parseAllowTarget( @@ -144,3 +145,19 @@ describe("formatNormalizedAllowFromEntries", () => { expect(formatNormalizedAllowFromEntries(input)).toEqual(expected); }); }); + +describe("mapAllowlistResolutionInputs", () => { + it("maps inputs sequentially and preserves order", async () => { + const visited: string[] = []; + const result = await mapAllowlistResolutionInputs({ + inputs: ["one", "two", "three"], + mapInput: async (input) => { + visited.push(input); + return input.toUpperCase(); + }, + }); + + expect(visited).toEqual(["one", "two", "three"]); + expect(result).toEqual(["ONE", "TWO", "THREE"]); + }); +}); diff --git a/src/plugin-sdk/allowlist-resolution.test.ts b/src/plugin-sdk/allowlist-resolution.test.ts deleted file mode 100644 index 12619308269..00000000000 --- a/src/plugin-sdk/allowlist-resolution.test.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { mapAllowlistResolutionInputs } from "./allow-from.js"; - -describe("mapAllowlistResolutionInputs", () => { - it("maps inputs sequentially and preserves order", async () => { - const visited: string[] = []; - const result = await mapAllowlistResolutionInputs({ - inputs: ["one", "two", "three"], - mapInput: async (input) => { - visited.push(input); - return input.toUpperCase(); - }, - }); - - expect(visited).toEqual(["one", "two", "three"]); - expect(result).toEqual(["ONE", "TWO", "THREE"]); - }); -});