We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3538cc2 commit f2546faCopy full SHA for f2546fa
test/scenarios/errors.test.ts
@@ -23,7 +23,7 @@ describe("api.github.com", () => {
23
.catch((error) => {
24
expect(error.message).toMatch(
25
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`,
+ `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`,
27
),
28
);
29
expect(error.response.data.errors).toEqual([
0 commit comments