fix(ui): remove deprecated FetchPost

This commit is contained in:
Łukasz Mierzwa
2020-06-08 16:37:21 +01:00
committed by Łukasz Mierzwa
parent be882121cd
commit cb68a23b90
2 changed files with 2 additions and 7 deletions

View File

@@ -37,7 +37,4 @@ const FetchGet = async (uri, options, beforeRetry) =>
FetchRetryConfig
);
const FetchPost = async (uri, options) =>
await fetch(uri, merge({}, { method: "POST" }, CommonOptions, options));
export { CommonOptions, FetchGet, FetchPost, FetchRetryConfig };
export { CommonOptions, FetchGet, FetchRetryConfig };

View File

@@ -1,4 +1,4 @@
import { CommonOptions, FetchGet, FetchPost, FetchRetryConfig } from "./Fetch";
import { CommonOptions, FetchGet, FetchRetryConfig } from "./Fetch";
import merge from "lodash.merge";
@@ -20,12 +20,10 @@ afterEach(() => {
describe("Fetch", () => {
const tests = {
FetchGet: FetchGet,
FetchPost: FetchPost,
};
const methodOptions = {
FetchGet: { method: "GET", mode: "cors" },
FetchPost: { method: "POST" },
};
for (const [name, func] of Object.entries(tests)) {