From fd7ed13e9d37ed689ea560f3400111393041f3e9 Mon Sep 17 00:00:00 2001 From: Katalina Okano Date: Thu, 3 Feb 2022 22:59:32 -0500 Subject: [PATCH] fix tests as output types changed a little --- packages/api/src/routes/interactions/interactions.spec.ts | 2 +- packages/api/src/routes/interactions/testHelpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/routes/interactions/interactions.spec.ts b/packages/api/src/routes/interactions/interactions.spec.ts index 77d0bd0..4a4cebd 100644 --- a/packages/api/src/routes/interactions/interactions.spec.ts +++ b/packages/api/src/routes/interactions/interactions.spec.ts @@ -24,7 +24,7 @@ it('responds with a simple hello-world!', async () => { }); expect(mockDiscordFetch).toBeCalledWith(expect.any(String), '', AuthType.None, { body: JSON.stringify({ - type: InteractionCallbackType.DEFERRED_UPDATE_MESSAGE, + type: InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE, data: { flags: InteractionFlags.EPHEMERAL, content: 'Hey there, test-user-nick', diff --git a/packages/api/src/routes/interactions/testHelpers.ts b/packages/api/src/routes/interactions/testHelpers.ts index 67fe639..79c82af 100644 --- a/packages/api/src/routes/interactions/testHelpers.ts +++ b/packages/api/src/routes/interactions/testHelpers.ts @@ -119,7 +119,7 @@ export const mockUpdateCall = ( AuthType.None, { body: JSON.stringify({ - type: InteractionCallbackType.DEFERRED_UPDATE_MESSAGE, + type: InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE, data: { flags: InteractionFlags.EPHEMERAL, ...data,