Skip to content

Commit

Permalink
chore: resolve codeql warning in unit test (#264)
Browse files Browse the repository at this point in the history
This is a small fix for a codeql warning in the tests. We can merge this
without a release, as we are not shipping tests with our npm packages.
  • Loading branch information
Uzlopak committed Nov 17, 2023
1 parent 4f59379 commit fc3f2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit fc3f2a6

Please sign in to comment.