From 4f2c62c482fb1cfa42c2e97e2995fb60b6eb15a7 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Fri, 17 Nov 2023 22:46:37 +0100 Subject: [PATCH] fix codeql warning in unit test --- test/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.test.ts b/test/index.test.ts index d469cd4..6dc6672 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -6,7 +6,7 @@ describe("client", () => { describe("createChannel", () => { test("returns a new channel", async () => { const channel = await Client.createChannel(); - expect(channel).toMatch(/https:\/\/smee\.io\/[0-9a-zA-Z]{10,}/); + expect(channel).toMatch(/^https:\/\/smee\.io\/[0-9a-zA-Z]{10,}$/); }); test("throws if could not create a new channel", async () => {