From 2b9f18a865705b053a4b1a567049aed643aa001b Mon Sep 17 00:00:00 2001 From: soonsouth Date: Tue, 10 Dec 2024 11:19:03 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: soonsouth --- apps/api/src/app/admins/admins.service.test.ts | 4 ++-- apps/dashboard/src/api/bandadaAPI.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/admins/admins.service.test.ts b/apps/api/src/app/admins/admins.service.test.ts index ca92c669..e8e44cc6 100644 --- a/apps/api/src/app/admins/admins.service.test.ts +++ b/apps/api/src/app/admins/admins.service.test.ts @@ -129,7 +129,7 @@ describe("AdminsService", () => { expect(admin.apiKey).toBe(apiKey) }) - it("Should not create the apikey when the given id does not belog to an admin", async () => { + it("Should not create the apikey when the given id does not belong to an admin", async () => { const wrongId = "wrongId" const fun = adminsService.updateApiKey( @@ -158,7 +158,7 @@ describe("AdminsService", () => { ) }) - it("Shoul throw if the action does not exist", async () => { + it("Should throw if the action does not exist", async () => { const wrongAction = "wrong-action" const fun = adminsService.updateApiKey( diff --git a/apps/dashboard/src/api/bandadaAPI.ts b/apps/dashboard/src/api/bandadaAPI.ts index 8d477445..c387578d 100644 --- a/apps/dashboard/src/api/bandadaAPI.ts +++ b/apps/dashboard/src/api/bandadaAPI.ts @@ -167,7 +167,7 @@ export async function removeGroup(groupId: string): Promise { } /** - * It returns a random string to be used as a OAuth state, to to protect against + * It returns a random string to be used as a OAuth state, to protect against * forgery attacks. It will be used to retrieve group, member, redirectURI and provider * before checking credentials and adding members. * @param group The group id.