Skip to content

Commit

Permalink
Undo unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JstnMcBrd committed Oct 25, 2023
1 parent 88cc4e4 commit 727d556
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/events/interactionCreate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ describe('on(interactionCreate)', () => {
await expect(interactionCreate.execute(interaction)).resolves.toBeUndefined();
expect(mockGlobalExecute).not.toHaveBeenCalled();
expect(mockGuildedExecute).not.toHaveBeenCalled();
expect(mockRespond).toHaveBeenCalledOnce();
expect(mockRespond).toHaveBeenCalledWith([]);
expect(mockGlobalAutocomplete).not.toHaveBeenCalled();
});
Expand All @@ -553,6 +554,7 @@ describe('on(interactionCreate)', () => {
await expect(interactionCreate.execute(interaction)).resolves.toBeUndefined();
expect(mockGlobalExecute).not.toHaveBeenCalled();
expect(mockGuildedExecute).not.toHaveBeenCalled();
expect(mockRespond).toHaveBeenCalledOnce();
expect(mockRespond).toHaveBeenCalledWith([]);
expect(mockGlobalAutocomplete).not.toHaveBeenCalled();
});
Expand All @@ -563,6 +565,7 @@ describe('on(interactionCreate)', () => {
await expect(interactionCreate.execute(interaction)).resolves.toBeUndefined();
expect(mockGlobalExecute).not.toHaveBeenCalled();
expect(mockGuildedExecute).not.toHaveBeenCalled();
expect(mockRespond).toHaveBeenCalledOnce();
expect(mockRespond).toHaveBeenCalledWith([]);
expect(mockGlobalAutocomplete).not.toHaveBeenCalled();
});
Expand All @@ -573,6 +576,7 @@ describe('on(interactionCreate)', () => {
await expect(interactionCreate.execute(interaction)).resolves.toBeUndefined();
expect(mockGlobalExecute).not.toHaveBeenCalled();
expect(mockGuildedExecute).not.toHaveBeenCalled();
expect(mockRespond).toHaveBeenCalledOnce();
expect(mockRespond).toHaveBeenCalledWith([]);
expect(mockGlobalAutocomplete).not.toHaveBeenCalled();
});
Expand All @@ -582,6 +586,7 @@ describe('on(interactionCreate)', () => {
expect(mockGlobalExecute).not.toHaveBeenCalled();
expect(mockGuildedExecute).not.toHaveBeenCalled();
expect(mockRespond).toHaveBeenCalledOnce();
expect(mockGlobalAutocomplete).toHaveBeenCalledOnce();
expect(mockGlobalAutocomplete).toHaveBeenCalledWith(interaction);
});

Expand All @@ -593,7 +598,9 @@ describe('on(interactionCreate)', () => {
await expect(interactionCreate.execute(interaction)).resolves.toBeUndefined();
expect(mockGlobalExecute).not.toHaveBeenCalled();
expect(mockGuildedExecute).not.toHaveBeenCalled();
expect(mockRespond).toHaveBeenCalledOnce();
expect(mockRespond).toHaveBeenCalledWith([]);
expect(mockGlobalAutocomplete).toHaveBeenCalledOnce();
expect(mockGlobalAutocomplete).toHaveBeenCalledWith(interaction);
});

Expand All @@ -606,7 +613,9 @@ describe('on(interactionCreate)', () => {
await expect(interactionCreate.execute(interaction)).resolves.toBeUndefined();
expect(mockGlobalExecute).not.toHaveBeenCalled();
expect(mockGuildedExecute).not.toHaveBeenCalled();
expect(mockRespond).toHaveBeenCalledOnce();
expect(mockRespond).toHaveBeenCalledWith([]);
expect(mockGlobalAutocomplete).toHaveBeenCalledOnce();
expect(mockGlobalAutocomplete).toHaveBeenCalledWith(interaction);
});
});
Expand Down

0 comments on commit 727d556

Please sign in to comment.