mirror of
https://github.com/prymitive/karma
synced 2026-09-04 11:27:19 +00:00
Merge pull request #1268 from prymitive/renovate/jest-fetch-mock-3.x
chore(deps): update dependency jest-fetch-mock to v3
This commit is contained in:
Generated
+338
-275
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -84,7 +84,7 @@
|
||||
"fetch-mock": "8.1.0",
|
||||
"jest-canvas-mock": "2.2.0",
|
||||
"jest-date-mock": "1.0.7",
|
||||
"jest-fetch-mock": "2.1.2",
|
||||
"jest-fetch-mock": "3.0.0",
|
||||
"markdownlint-cli": "0.20.0",
|
||||
"node-sass": "4.13.0",
|
||||
"prettier": "1.19.1",
|
||||
|
||||
@@ -26,7 +26,7 @@ describe("Fetch", () => {
|
||||
for (const [name, func] of Object.entries(tests)) {
|
||||
it(`${name}: passes '{credentials: include}' to all requests`, async () => {
|
||||
const request = func("http://example.com", {});
|
||||
await expect(request).resolves.toBeUndefined();
|
||||
await expect(request).resolves.toMatchObject({ status: 200 });
|
||||
expect(fetch).toHaveBeenCalledWith(
|
||||
"http://example.com",
|
||||
merge({}, CommonOptions, methodOptions[name])
|
||||
@@ -37,7 +37,7 @@ describe("Fetch", () => {
|
||||
const request = func("http://example.com", {
|
||||
foo: "bar"
|
||||
});
|
||||
await expect(request).resolves.toBeUndefined();
|
||||
await expect(request).resolves.toMatchObject({ status: 200 });
|
||||
expect(fetch).toHaveBeenCalledWith(
|
||||
"http://example.com",
|
||||
merge({}, CommonOptions, methodOptions[name], { foo: "bar" })
|
||||
@@ -49,7 +49,7 @@ describe("Fetch", () => {
|
||||
credentials: "none",
|
||||
redirect: "follow"
|
||||
});
|
||||
await expect(request).resolves.toBeUndefined();
|
||||
await expect(request).resolves.toMatchObject({ status: 200 });
|
||||
expect(fetch).toHaveBeenCalledWith(
|
||||
"http://example.com",
|
||||
merge({}, CommonOptions, methodOptions[name], {
|
||||
|
||||
Reference in New Issue
Block a user