This commit is contained in:
parent
17d89d4a44
commit
2becf6b95a
4 changed files with 42 additions and 67 deletions
41
tests/database/entities/app/UserEffect.test.ts
Normal file
41
tests/database/entities/app/UserEffect.test.ts
Normal file
|
@ -0,0 +1,41 @@
|
|||
describe("AddUnused", () => {
|
||||
test.todo("EXPECT unused to be the amount more");
|
||||
});
|
||||
|
||||
describe("UseEffect", () => {
|
||||
describe("GIVEN Unused is 0", () => {
|
||||
test.todo("EXPECT false returned");
|
||||
});
|
||||
|
||||
describe("GIVEN Unused is greater than 0", () => {
|
||||
test.todo("EXPECT true returned");
|
||||
|
||||
test.todo("EXPECT Unused to be subtracted by 1");
|
||||
|
||||
test.todo("EXPECT WhenExpires to be set");
|
||||
});
|
||||
});
|
||||
|
||||
describe("IsEffectActive", () => {
|
||||
describe("GIVEN WhenExpires is null", () => {
|
||||
test.todo("EXPECT false returned");
|
||||
});
|
||||
|
||||
describe("GIVEN WhenExpires is defined", () => {
|
||||
describe("AND WhenExpires is in the past", () => {
|
||||
test.todo("EXPECT false returned");
|
||||
});
|
||||
|
||||
describe("AND WhenExpires is in the future", () => {
|
||||
test.todo("EXPECT true returned");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("FetchOneByUserIdAndName", () => {
|
||||
test.todo("EXPECT entity to be returned");
|
||||
|
||||
test.todo("EXPECT AppDataSource.getRepository to have been called");
|
||||
|
||||
test.todo("EXPECT repository.findOne to have been called");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue