Move unclaimed logic to a common function
This commit is contained in:
parent
1106585f58
commit
f221a5dffe
6 changed files with 41 additions and 19 deletions
7
tests/helpers/DropHelpers/GetCardsHelper.test.ts
Normal file
7
tests/helpers/DropHelpers/GetCardsHelper.test.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
describe("FetchCard", () => {
|
||||
test.todo("GIVEN user has the unclaimed effect AND unused chance is within constraint, EXPECT unclaimed card returned");
|
||||
|
||||
test.todo("GIVEN user has unclaimed effect AND unused chance is NOT within constraint, EXPECT random card returned");
|
||||
|
||||
test.todo("GIVEN user does NOT have unclaimed effect, EXPECT random card returned");
|
||||
});
|
19
tests/helpers/DropHelpers/GetUnclaimedCardsHelper.test.ts
Normal file
19
tests/helpers/DropHelpers/GetUnclaimedCardsHelper.test.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
describe("GetRandomCardUnclaimed", () => {
|
||||
test.todo("GIVEN chance is within bronze chance, EXPECT bronze card returned");
|
||||
|
||||
test.todo("GIVEN chance is within silver chance, EXPECT silver card");
|
||||
|
||||
test.todo("GIVEN chance is within gold chance, EXPECT gold card returned");
|
||||
|
||||
test.todo("GIVEN chance is within manga chance, EXPECT manga card returned");
|
||||
});
|
||||
|
||||
describe("GetRandomCardByRarityUnclaimed", () => {
|
||||
test.todo("GIVEN user has no claimed cards, EXPECT random card returned");
|
||||
|
||||
test.todo("GIVEN no cards are found in memory, EXPECT undefined returned");
|
||||
|
||||
test.todo("GIVEN no series metadata is found for random card, EXPECT undefined returned");
|
||||
|
||||
test.todo("GIVEN user has claimed cards, EXPECT random card to NOT be this card");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue