WIP: Planning more tests
All checks were successful
Test / build (push) Successful in 10s

This commit is contained in:
Ethan Lane 2024-10-31 16:56:36 +00:00
parent 974e298214
commit 43751e5b02
5 changed files with 91 additions and 42 deletions

View file

@ -1,49 +1,43 @@
describe("GIVEN interation.guild is null", () => {
test.todo("EXPECT nothing to happen");
describe("GIVEN interaction.guild is null", () => {
test.todo("EXPECT function to return");
});
describe("GIVEN userId is not supplied", () => {
test.todo("EXPECT nothing to happen");
describe("GIVEN userId parameter is undefined", () => {
test.todo("EXPECT function to return");
});
describe("GIVEN page is not supplied", () => {
test.todo("EXPECT nothing to happen");
describe("GIVEN page parameter is undefined", () => {
test.todo("EXPECT function to return");
});
describe("GIVEN moons entity is undefined", () => {
test.todo("EXPECT interaction replied");
describe("GIVEN no moons for the user is returned", () => {
test.todo("EXPECT error replied");
});
describe("GIVEN moons array is empty", () => {
test.todo("EXPECT embed description to say none");
});
describe("GIVEN moons array is not empty", () => {
test.todo("EXPECT embed description to specify moon details");
});
describe("GIVEN moon difference is greater than 0", () => {
describe("GIVEN it is not the last page", () => {
test.todo("EXPECT untracked moons message to not be displayed");
});
describe("GIVEN it is the last page", () => {
test.todo("EXPECT untracked moons to be displayed");
});
describe("GIVEN moons array is empty", () => {
test.todo("EXPECT untracked moons to be displayed");
});
});
describe("GIVEN it is the first page", () => {
test.todo("EXPECT previous button to be disabled");
});
describe("GIVEN it is the last page", () => {
test.todo("EXPECT next button to be disabled");
describe("GIVEN no moons on current page", () => {
test.todo("EXPECT description to say so");
});
describe("GIVEN happy flow", () => {
test.todo("EXPECT interaction to be updated");
test.todo("EXPECT moons to be fetched");
test.todo("EXPECT embed to be updated");
test.todo("EXPECT row to be updated");
describe("GIVEN it is the first page", () => {
test.todo("EXPECT Previous button to be disabled");
});
describe("GIVEN it is the last page", () => {
test.todo("EXPECT Next button to be disabled");
describe("GIVEN there are more moons in the counter than in the database", () => {
test.todo("EXPECT untracked counter to be present");
});
});
describe("GIVEN no moons on the current page", () => {
test.todo("EXPECT Next button to be disabled");
});
});