Skip to content

Commit b0c817e

Browse files
committed
test: dedupe discord sdk mock read
1 parent 27af4f6 commit b0c817e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugin-sdk/discord.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe("discord plugin-sdk facade", () => {
161161
});
162162

163163
expect(mocks.runtimeModule.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1);
164-
const callParams = mocks.runtimeModule.autoBindSpawnedDiscordSubagent.mock.calls.at(0)?.[0];
164+
const callParams = mocks.runtimeModule.autoBindSpawnedDiscordSubagent.mock.calls[0]?.[0];
165165
expect(callParams.agentId).toBe("agent");
166166
expect(callParams.cfg).toBe(mocks.runtimeConfig);
167167
expect(callParams.childSessionKey).toBe("child");

0 commit comments

Comments
 (0)