mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
fix tests as output types changed a little
This commit is contained in:
parent
544ef1b2f0
commit
fd7ed13e9d
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ it('responds with a simple hello-world!', async () => {
|
||||||
});
|
});
|
||||||
expect(mockDiscordFetch).toBeCalledWith(expect.any(String), '', AuthType.None, {
|
expect(mockDiscordFetch).toBeCalledWith(expect.any(String), '', AuthType.None, {
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
type: InteractionCallbackType.DEFERRED_UPDATE_MESSAGE,
|
type: InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE,
|
||||||
data: {
|
data: {
|
||||||
flags: InteractionFlags.EPHEMERAL,
|
flags: InteractionFlags.EPHEMERAL,
|
||||||
content: 'Hey there, test-user-nick',
|
content: 'Hey there, test-user-nick',
|
||||||
|
|
|
@ -119,7 +119,7 @@ export const mockUpdateCall = (
|
||||||
AuthType.None,
|
AuthType.None,
|
||||||
{
|
{
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
type: InteractionCallbackType.DEFERRED_UPDATE_MESSAGE,
|
type: InteractionCallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE,
|
||||||
data: {
|
data: {
|
||||||
flags: InteractionFlags.EPHEMERAL,
|
flags: InteractionFlags.EPHEMERAL,
|
||||||
...data,
|
...data,
|
||||||
|
|
Loading…
Add table
Reference in a new issue