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 () => {