Skip to content

Commit f2546fa

Browse files
committed
test: update regex for error
1 parent 3538cc2 commit f2546fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/scenarios/errors.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe("api.github.com", () => {
2323
.catch((error) => {
2424
expect(error.message).toMatch(
2525
new RegExp(
26-
`Validation Failed: {"resource":"Label","code":"invalid","field":"color"} - http://localhost:3000/docs.github.com/[a-z0-9]{11}/rest/reference/issues#create-a-label`,
26+
`Validation Failed: {\\"resource\\":\\"Label\\",\\"code\\":\\"invalid\\",\\"field\\":\\"color\\"} - http://localhost:3000/docs.github.com/[a-z0-9]{10,11}/rest/reference/issues#create-a-label`,
2727
),
2828
);
2929
expect(error.response.data.errors).toEqual([

0 commit comments

Comments
 (0)