From 2b6223fa67c5b174f252a90d257ac497cfc3fe07 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Thu, 19 Sep 2024 19:03:53 +0100 Subject: [PATCH 1/7] Update yarn.lock --- yarn.lock | 5 ----- 1 file changed, 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index 56f8f79..d672daa 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4346,11 +4346,6 @@ typescript@^5.0.0: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba" integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q== -undici-types@~6.13.0: - version "6.13.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.13.0.tgz#e3e79220ab8c81ed1496b5812471afd7cf075ea5" - integrity sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg== - undici-types@~6.19.2: version "6.19.8" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" -- 2.43.4 From 4e734a9245258e578dfeeef15ff8c1b5ea3c5b72 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Thu, 19 Sep 2024 19:23:01 +0100 Subject: [PATCH 2/7] Add /moons add command --- src/commands/304276391837302787/moons.ts | 15 ++++++++++- src/commands/304276391837302787/moons/add.ts | 26 ++++++++++++++++++++ src/constants/EmbedColours.ts | 1 + src/database/entities/Moon.ts | 8 ++++++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 src/commands/304276391837302787/moons/add.ts diff --git a/src/commands/304276391837302787/moons.ts b/src/commands/304276391837302787/moons.ts index 13f0f98..dc884a0 100644 --- a/src/commands/304276391837302787/moons.ts +++ b/src/commands/304276391837302787/moons.ts @@ -1,6 +1,7 @@ import { Command } from "../../type/command"; import { CommandInteraction, SlashCommandBuilder } from "discord.js"; import ListMoons from "./moons/list"; +import AddMoon from "./moons/add"; export default class Moons extends Command { constructor() { @@ -20,7 +21,16 @@ export default class Moons extends Command { .addNumberOption(option => option .setName("page") - .setDescription("The page to start with"))); + .setDescription("The page to start with"))) + .addSubcommand(subcommand => + subcommand + .setName('add') + .setDescription('Add a moon to your count!') + .addStringOption(option => + option + .setName("description") + .setDescription("What deserved a moon?") + .setRequired(true))); } public override async execute(interaction: CommandInteraction) { @@ -30,6 +40,9 @@ export default class Moons extends Command { case "list": await ListMoons(interaction); break; + case "add": + await AddMoon(interaction); + break; } } } diff --git a/src/commands/304276391837302787/moons/add.ts b/src/commands/304276391837302787/moons/add.ts new file mode 100644 index 0000000..3a68a14 --- /dev/null +++ b/src/commands/304276391837302787/moons/add.ts @@ -0,0 +1,26 @@ +import {CommandInteraction, EmbedBuilder} from "discord.js"; +import Moon from "../../../database/entities/Moon"; +import EmbedColours from "../../../constants/EmbedColours"; + +export default async function AddMoon(interaction: CommandInteraction) { + const description = interaction.options.get("description", true).value?.toString(); + + if (!description || description.length > 255) { + await interaction.reply("Name must be less than 255 characters!"); + return; + } + + const moonCount = await Moon.FetchMoonCountByUserId(interaction.user.id); + + const moon = new Moon(moonCount + 1, description, interaction.user.id); + + await moon.Save(Moon, moon); + + const embed = new EmbedBuilder() + .setTitle(`${interaction.user.globalName} Got A Moon!`) + .setColor(EmbedColours.Moon) + .setDescription(`${moon.MoonNumber}. ${moon.Description}`) + .setThumbnail("https://cdn.discordapp.com/emojis/374131312182689793.webp?size=96&quality=lossless"); + + await interaction.reply({ embeds: [ embed ] }); +} diff --git a/src/constants/EmbedColours.ts b/src/constants/EmbedColours.ts index 023c77a..b15429c 100644 --- a/src/constants/EmbedColours.ts +++ b/src/constants/EmbedColours.ts @@ -1,3 +1,4 @@ export default class EmbedColours { public static readonly Ok = 0x3050ba; + public static readonly Moon = 0x50C878; } \ No newline at end of file diff --git a/src/database/entities/Moon.ts b/src/database/entities/Moon.ts index 566d1d4..24fdbf1 100644 --- a/src/database/entities/Moon.ts +++ b/src/database/entities/Moon.ts @@ -46,4 +46,12 @@ export default class Moon extends BaseEntity { return moons; } + + public static async FetchMoonCountByUserId(userId: string): Promise { + const repository = AppDataSource.getRepository(Moon); + + const count = await repository.count({ where: { UserId: userId } }); + + return count; + } } -- 2.43.4 From 53cc4796f54c75788d17552f55464076b0f5b3f5 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Thu, 19 Sep 2024 19:27:13 +0100 Subject: [PATCH 3/7] Move moon entity --- src/buttonEvents/moons/list.ts | 2 +- src/commands/304276391837302787/moons/add.ts | 2 +- src/commands/304276391837302787/moons/list.ts | 2 +- src/database/entities/{ => 304276391837302787}/Moon.ts | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename src/database/entities/{ => 304276391837302787}/Moon.ts (92%) diff --git a/src/buttonEvents/moons/list.ts b/src/buttonEvents/moons/list.ts index 9309dbe..ef7f7a9 100644 --- a/src/buttonEvents/moons/list.ts +++ b/src/buttonEvents/moons/list.ts @@ -1,5 +1,5 @@ import {ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, EmbedBuilder} from "discord.js"; -import Moon from "../../database/entities/Moon"; +import Moon from "../../database/entities/304276391837302787/Moon"; import EmbedColours from "../../constants/EmbedColours"; export default async function List(interaction: ButtonInteraction) { diff --git a/src/commands/304276391837302787/moons/add.ts b/src/commands/304276391837302787/moons/add.ts index 3a68a14..a4459fc 100644 --- a/src/commands/304276391837302787/moons/add.ts +++ b/src/commands/304276391837302787/moons/add.ts @@ -1,5 +1,5 @@ import {CommandInteraction, EmbedBuilder} from "discord.js"; -import Moon from "../../../database/entities/Moon"; +import Moon from "../../../database/entities/304276391837302787/Moon"; import EmbedColours from "../../../constants/EmbedColours"; export default async function AddMoon(interaction: CommandInteraction) { diff --git a/src/commands/304276391837302787/moons/list.ts b/src/commands/304276391837302787/moons/list.ts index 8727124..ff4661e 100644 --- a/src/commands/304276391837302787/moons/list.ts +++ b/src/commands/304276391837302787/moons/list.ts @@ -1,5 +1,5 @@ import {ActionRowBuilder, ButtonBuilder, ButtonStyle, CommandInteraction, EmbedBuilder} from "discord.js"; -import Moon from "../../../database/entities/Moon"; +import Moon from "../../../database/entities/304276391837302787/Moon"; import EmbedColours from "../../../constants/EmbedColours"; export default async function ListMoons(interaction: CommandInteraction) { diff --git a/src/database/entities/Moon.ts b/src/database/entities/304276391837302787/Moon.ts similarity index 92% rename from src/database/entities/Moon.ts rename to src/database/entities/304276391837302787/Moon.ts index 24fdbf1..e3ffa48 100644 --- a/src/database/entities/Moon.ts +++ b/src/database/entities/304276391837302787/Moon.ts @@ -1,6 +1,6 @@ import { Column, Entity, IsNull } from "typeorm"; -import BaseEntity from "../../contracts/BaseEntity"; -import AppDataSource from "../dataSources/appDataSource"; +import BaseEntity from "../../../contracts/BaseEntity"; +import AppDataSource from "../../dataSources/appDataSource"; @Entity() export default class Moon extends BaseEntity { -- 2.43.4 From 3c45410932476a949c112529d53528137e73bc12 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 21 Sep 2024 10:54:00 +0100 Subject: [PATCH 4/7] Update the moon description to use dash --- src/buttonEvents/moons/list.ts | 2 +- src/commands/304276391837302787/moons/add.ts | 2 +- src/commands/304276391837302787/moons/list.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/buttonEvents/moons/list.ts b/src/buttonEvents/moons/list.ts index ef7f7a9..36aa356 100644 --- a/src/buttonEvents/moons/list.ts +++ b/src/buttonEvents/moons/list.ts @@ -25,7 +25,7 @@ export default async function List(interaction: ButtonInteraction) { const totalPages = Math.ceil(moons[1] / pageLength); - const description = moons[0].flatMap(x => `${x.MoonNumber}. ${x.Description.slice(0, 15)}`); + const description = moons[0].flatMap(x => `**${x.MoonNumber} -** ${x.Description.slice(0, 15)}`); const embed = new EmbedBuilder() .setTitle(`${member?.user.username}'s Moons`) diff --git a/src/commands/304276391837302787/moons/add.ts b/src/commands/304276391837302787/moons/add.ts index a4459fc..130aee3 100644 --- a/src/commands/304276391837302787/moons/add.ts +++ b/src/commands/304276391837302787/moons/add.ts @@ -19,7 +19,7 @@ export default async function AddMoon(interaction: CommandInteraction) { const embed = new EmbedBuilder() .setTitle(`${interaction.user.globalName} Got A Moon!`) .setColor(EmbedColours.Moon) - .setDescription(`${moon.MoonNumber}. ${moon.Description}`) + .setDescription(`**${moon.MoonNumber} -** ${moon.Description}`) .setThumbnail("https://cdn.discordapp.com/emojis/374131312182689793.webp?size=96&quality=lossless"); await interaction.reply({ embeds: [ embed ] }); diff --git a/src/commands/304276391837302787/moons/list.ts b/src/commands/304276391837302787/moons/list.ts index ff4661e..838cd14 100644 --- a/src/commands/304276391837302787/moons/list.ts +++ b/src/commands/304276391837302787/moons/list.ts @@ -17,7 +17,7 @@ export default async function ListMoons(interaction: CommandInteraction) { const totalPages = Math.ceil(moons[1] / pageLength); - const description = moons[0].flatMap(x => `${x.MoonNumber}. ${x.Description.slice(0, 15)}`); + const description = moons[0].flatMap(x => `**${x.MoonNumber} -** ${x.Description.slice(0, 15)}`); const embed = new EmbedBuilder() .setTitle(`${user.username}'s Moons`) -- 2.43.4 From a7b3079fcd134d39ce01c2ad1f502ce5cf5bb700 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 21 Sep 2024 11:21:55 +0100 Subject: [PATCH 5/7] WIP: Start to plan tests --- tests/buttonEvents/moons/list.test.ts | 35 +++++++++++++++++ .../commands/304276391837302787/moons.test.ts | 17 ++++++++ .../304276391837302787/moons/add.test.ts | 17 ++++++++ .../304276391837302787/moons/list.test.ts | 39 +++++++++++++++++++ .../entities/304276391837302787/Moon.test.ts | 0 5 files changed, 108 insertions(+) create mode 100644 tests/buttonEvents/moons/list.test.ts create mode 100644 tests/commands/304276391837302787/moons.test.ts create mode 100644 tests/commands/304276391837302787/moons/add.test.ts create mode 100644 tests/commands/304276391837302787/moons/list.test.ts create mode 100644 tests/database/entities/304276391837302787/Moon.test.ts diff --git a/tests/buttonEvents/moons/list.test.ts b/tests/buttonEvents/moons/list.test.ts new file mode 100644 index 0000000..57cbb6d --- /dev/null +++ b/tests/buttonEvents/moons/list.test.ts @@ -0,0 +1,35 @@ +describe("GIVEN valid input", () => { + test.todo("EXPECT interaction.update to be called"); + + test.todo("EXPECT embed to contain correct information"); + + test.todo("EXPECT component row to contain correct information"); + + describe("GIVEN is first page", () => { + test.todo("EXPECT Previous button to be disabled"); + }); + + describe("GIVEN is last page", () => { + test.todo("EXPECT Next button to be disabled"); + }); +}); + +describe("GIVEN interaction.guild is undefined", () => { + test.todo("EXPECT nothing to happen"); +}); + +describe("GIVEN userId is not supplied", () => { + test.todo("EXPECT nothing to happen"); +}); + +describe("GIVEN page is not supplied", () => { + test.todo("EXPECT nothing to happen"); +}); + +describe("GIVEN moon object is undefined", () => { + test.todo("EXPECT error replied"); +}); + +describe("GIVEN the user has 0 moons", () => { + test.todo("EXPECT error replied"); +}); diff --git a/tests/commands/304276391837302787/moons.test.ts b/tests/commands/304276391837302787/moons.test.ts new file mode 100644 index 0000000..33d0978 --- /dev/null +++ b/tests/commands/304276391837302787/moons.test.ts @@ -0,0 +1,17 @@ +describe("constructor", () => { + test.todo("EXPECT CommandBuilder to be valid"); +}); + +describe("execute", () => { + describe("GIVEN subcommand is list", () => { + test.todo("EXPECT ListMoons executed"); + }); + + describe("GIVEN subcommand is add", () => { + test.todo("EXPECT AddMoon executed"); + }); + + describe("GIVEN interaction.isChatInputCommand is false", () => { + test.todo("EXPECT nothing to happen"); + }); +}); diff --git a/tests/commands/304276391837302787/moons/add.test.ts b/tests/commands/304276391837302787/moons/add.test.ts new file mode 100644 index 0000000..5491fcb --- /dev/null +++ b/tests/commands/304276391837302787/moons/add.test.ts @@ -0,0 +1,17 @@ +describe("GIVEN valid input", () => { + test.todo("EXPECT interaction replied"); + + test.todo("EXPECT embed details are correct"); +}); + +describe("GIVEN description is undefined", () => { + test.todo("EXPECT error replied"); + + test.todo("EXPECT function returned"); +}); + +describe("GIVEN description is more than 255 characters long", () => { + test.todo("EXPECT error replied"); + + test.todo("EXPECT function returned"); +}); diff --git a/tests/commands/304276391837302787/moons/list.test.ts b/tests/commands/304276391837302787/moons/list.test.ts new file mode 100644 index 0000000..9137203 --- /dev/null +++ b/tests/commands/304276391837302787/moons/list.test.ts @@ -0,0 +1,39 @@ +describe("GIVEN valid input", () => { + test.todo("EXPECT interaction replied"); + + test.todo("EXPECT embed information to be correct"); + + test.todo("EXPECT component information to be correct"); + + 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 interaction.guild is undefined", () => { + test.todo("EXPECT nothing to happen"); +}); + +describe("GIVEN userId is not supplied", () => { + test.todo("EXPECT nothing to happen"); +}); + +describe("GIVEN page is not supplied", () => { + test.todo("EXPECT nothing to happen"); +}); + +describe("GIVEN moons object is undefined", () => { + test.todo("EXPECT error replied"); + + test.todo("EXPECT function returned"); +}); + +describe("GIVEN moons for user is 0", () => { + test.todo("EXPECT error replied"); + + test.todo("EXPECT function returned"); +}); diff --git a/tests/database/entities/304276391837302787/Moon.test.ts b/tests/database/entities/304276391837302787/Moon.test.ts new file mode 100644 index 0000000..e69de29 -- 2.43.4 From 321486a90b66bbbb6d16cc32647eca76652bd7a7 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 21 Sep 2024 14:41:38 +0100 Subject: [PATCH 6/7] 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"); +}); -- 2.43.4 From 05b9e0450614f6662f87d982a892933208c68547 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 21 Sep 2024 14:59:32 +0100 Subject: [PATCH 7/7] Remove tests --- package.json | 2 +- tests/buttonEvents/moons/list.test.ts | 35 ----------------- .../commands/304276391837302787/moons.test.ts | 17 -------- .../304276391837302787/moons/add.test.ts | 17 -------- .../304276391837302787/moons/list.test.ts | 39 ------------------- .../entities/304276391837302787/Moon.test.ts | 21 ---------- 6 files changed, 1 insertion(+), 130 deletions(-) delete mode 100644 tests/buttonEvents/moons/list.test.ts delete mode 100644 tests/commands/304276391837302787/moons.test.ts delete mode 100644 tests/commands/304276391837302787/moons/add.test.ts delete mode 100644 tests/commands/304276391837302787/moons/list.test.ts delete mode 100644 tests/database/entities/304276391837302787/Moon.test.ts diff --git a/package.json b/package.json index 3d3432f..92d3dd0 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 .", + "test": "jest . --passWithNoTests", "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/buttonEvents/moons/list.test.ts b/tests/buttonEvents/moons/list.test.ts deleted file mode 100644 index 57cbb6d..0000000 --- a/tests/buttonEvents/moons/list.test.ts +++ /dev/null @@ -1,35 +0,0 @@ -describe("GIVEN valid input", () => { - test.todo("EXPECT interaction.update to be called"); - - test.todo("EXPECT embed to contain correct information"); - - test.todo("EXPECT component row to contain correct information"); - - describe("GIVEN is first page", () => { - test.todo("EXPECT Previous button to be disabled"); - }); - - describe("GIVEN is last page", () => { - test.todo("EXPECT Next button to be disabled"); - }); -}); - -describe("GIVEN interaction.guild is undefined", () => { - test.todo("EXPECT nothing to happen"); -}); - -describe("GIVEN userId is not supplied", () => { - test.todo("EXPECT nothing to happen"); -}); - -describe("GIVEN page is not supplied", () => { - test.todo("EXPECT nothing to happen"); -}); - -describe("GIVEN moon object is undefined", () => { - test.todo("EXPECT error replied"); -}); - -describe("GIVEN the user has 0 moons", () => { - test.todo("EXPECT error replied"); -}); diff --git a/tests/commands/304276391837302787/moons.test.ts b/tests/commands/304276391837302787/moons.test.ts deleted file mode 100644 index 33d0978..0000000 --- a/tests/commands/304276391837302787/moons.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -describe("constructor", () => { - test.todo("EXPECT CommandBuilder to be valid"); -}); - -describe("execute", () => { - describe("GIVEN subcommand is list", () => { - test.todo("EXPECT ListMoons executed"); - }); - - describe("GIVEN subcommand is add", () => { - test.todo("EXPECT AddMoon executed"); - }); - - describe("GIVEN interaction.isChatInputCommand is false", () => { - test.todo("EXPECT nothing to happen"); - }); -}); diff --git a/tests/commands/304276391837302787/moons/add.test.ts b/tests/commands/304276391837302787/moons/add.test.ts deleted file mode 100644 index 5491fcb..0000000 --- a/tests/commands/304276391837302787/moons/add.test.ts +++ /dev/null @@ -1,17 +0,0 @@ -describe("GIVEN valid input", () => { - test.todo("EXPECT interaction replied"); - - test.todo("EXPECT embed details are correct"); -}); - -describe("GIVEN description is undefined", () => { - test.todo("EXPECT error replied"); - - test.todo("EXPECT function returned"); -}); - -describe("GIVEN description is more than 255 characters long", () => { - test.todo("EXPECT error replied"); - - test.todo("EXPECT function returned"); -}); diff --git a/tests/commands/304276391837302787/moons/list.test.ts b/tests/commands/304276391837302787/moons/list.test.ts deleted file mode 100644 index 9137203..0000000 --- a/tests/commands/304276391837302787/moons/list.test.ts +++ /dev/null @@ -1,39 +0,0 @@ -describe("GIVEN valid input", () => { - test.todo("EXPECT interaction replied"); - - test.todo("EXPECT embed information to be correct"); - - test.todo("EXPECT component information to be correct"); - - 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 interaction.guild is undefined", () => { - test.todo("EXPECT nothing to happen"); -}); - -describe("GIVEN userId is not supplied", () => { - test.todo("EXPECT nothing to happen"); -}); - -describe("GIVEN page is not supplied", () => { - test.todo("EXPECT nothing to happen"); -}); - -describe("GIVEN moons object is undefined", () => { - test.todo("EXPECT error replied"); - - test.todo("EXPECT function returned"); -}); - -describe("GIVEN moons for user is 0", () => { - test.todo("EXPECT error replied"); - - test.todo("EXPECT function returned"); -}); diff --git a/tests/database/entities/304276391837302787/Moon.test.ts b/tests/database/entities/304276391837302787/Moon.test.ts deleted file mode 100644 index 10c883d..0000000 --- a/tests/database/entities/304276391837302787/Moon.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -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"); -}); -- 2.43.4