Skip to content

Commit

Permalink
test: update regex for error
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Apr 10, 2024
1 parent 3538cc2 commit f2546fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/scenarios/errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("api.github.com", () => {
.catch((error) => {
expect(error.message).toMatch(
new RegExp(
`Validation Failed: {"resource":"Label","code":"invalid","field":"color"} - http://localhost:3000/docs.github.com/[a-z0-9]{11}/rest/reference/issues#create-a-label`,
`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`,
),
);
expect(error.response.data.errors).toEqual([
Expand Down

0 comments on commit f2546fa

Please sign in to comment.