|
|
|
@ -25,7 +25,7 @@ describe("test the outgoing webhook action", () => { |
|
|
|
expect(res.success).toEqual(true) |
|
|
|
expect(res.response.url).toEqual("http://www.test.com") |
|
|
|
expect(res.response.method).toEqual("POST") |
|
|
|
expect(res.response.body.a).toEqual(1) |
|
|
|
expect(JSON.parse(res.response.body).a).toEqual(1) |
|
|
|
}) |
|
|
|
|
|
|
|
it("should return an error if something goes wrong in fetch", async () => { |
|
|
|
|