From 321486a90b66bbbb6d16cc32647eca76652bd7a7 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 21 Sep 2024 14:41:38 +0100 Subject: [PATCH] Plan tests --- package.json | 2 +- .../entities/304276391837302787/Moon.test.ts | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 92d3dd0..3d3432f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "clean": "rm -rf node_modules/ dist/", "build": "tsc", "start": "node ./dist/vylbot", - "test": "jest . --passWithNoTests", + "test": "jest .", "db:up": "typeorm migration:run -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", diff --git a/tests/database/entities/304276391837302787/Moon.test.ts b/tests/database/entities/304276391837302787/Moon.test.ts index e69de29..10c883d 100644 --- a/tests/database/entities/304276391837302787/Moon.test.ts +++ b/tests/database/entities/304276391837302787/Moon.test.ts @@ -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"); +});