From fa901add35f92805ebaf6aca5e1f164aaae8004f Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 10 Aug 2021 10:52:02 -0400 Subject: [PATCH 1/2] print error in tests --- test/cases/setUsername.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cases/setUsername.ts b/test/cases/setUsername.ts index 048f750..c2c9cea 100644 --- a/test/cases/setUsername.ts +++ b/test/cases/setUsername.ts @@ -168,7 +168,7 @@ describe("setUsername", () => { assert.strictEqual(usernameInfo.locked, 1, "username should be locked"); done(); }) - .catch(() => done(`couldn't call endpoint`)); + .catch((err) => done(`couldn't call endpoint: ${err}`)); }); it("Should filter out unicode control characters", (done: Done) => { From 0fded0022c7cd9dd882198be4fcfc135bab2e66c Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Tue, 10 Aug 2021 10:58:20 -0400 Subject: [PATCH 2/2] Fix userCount using lower case --- src/routes/setUsername.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/setUsername.ts b/src/routes/setUsername.ts index 96fa1f9..277801a 100644 --- a/src/routes/setUsername.ts +++ b/src/routes/setUsername.ts @@ -46,7 +46,7 @@ export async function setUsername(req: Request, res: Response): Promise 0) { return res.sendStatus(200); }