This commit is contained in:
parent
38b0b8b301
commit
d4c75845e5
4 changed files with 39 additions and 1 deletions
|
@ -49,6 +49,8 @@ test("GIVEN action is use, EXPECT use function to be called", async () => {
|
|||
expect(List).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
test.todo("GIVEN action is buy, EXPECT buy function to be called");
|
||||
|
||||
test("GIVEN action is invalid, EXPECT nothing to be called", async () => {
|
||||
// Arrange
|
||||
interaction.customId = "effects invalid";
|
||||
|
@ -63,4 +65,4 @@ test("GIVEN action is invalid, EXPECT nothing to be called", async () => {
|
|||
|
||||
expect(AppLogger.LogError).toHaveBeenCalledTimes(1);
|
||||
expect(AppLogger.LogError).toHaveBeenCalledWith("Buttons/Effects", "Unknown action, invalid");
|
||||
});
|
||||
});
|
||||
|
|
7
tests/buttonEvents/Effects/Buy.test.ts
Normal file
7
tests/buttonEvents/Effects/Buy.test.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
describe("Execute", () => {
|
||||
test.todo("GIVEN subaction is confirm, EXPECT confirm function executed");
|
||||
|
||||
test.todo("GIVEN subaction is cancel, EXPECT cancel function executed");
|
||||
|
||||
test.todo("GIVEN subaction is invalid, EXPECT error logged");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue