Plan tests

This commit is contained in:
Ethan Lane 2024-09-21 14:41:38 +01:00
parent a7b3079fcd
commit 321486a90b
2 changed files with 22 additions and 1 deletions

View file

@ -8,7 +8,7 @@
"clean": "rm -rf node_modules/ dist/", "clean": "rm -rf node_modules/ dist/",
"build": "tsc", "build": "tsc",
"start": "node ./dist/vylbot", "start": "node ./dist/vylbot",
"test": "jest . --passWithNoTests", "test": "jest .",
"db:up": "typeorm migration:run -d dist/database/dataSources/appDataSource.js", "db:up": "typeorm migration:run -d dist/database/dataSources/appDataSource.js",
"db:down": "typeorm migration:revert -d dist/database/dataSources/appDataSource.js", "db:down": "typeorm migration:revert -d dist/database/dataSources/appDataSource.js",
"db:create": "typeorm migration:create ./src/database/migrations", "db:create": "typeorm migration:create ./src/database/migrations",

View file

@ -0,0 +1,21 @@
describe("constructor", () => {
describe("GIVEN entity created", () => {
test.todo("EXPECT MoonNumber to be set");
test.todo("EXPECT Description to be set");
test.todo("EXPECT UserId to be set");
});
});
describe("FetchMoonsByUserId", () => {
test.todo("EXPECT list of moons to be returned");
});
describe("FetchPaginatedMoonsByUserId", () => {
test.todo("EXPECT list of moons to be returned with page list");
});
describe("FetchMoonCountByUserId", () => {
test.todo("EXPECT count to be returned");
});