From 734fee60ca7323d34c2e50fc35f7c610fda5e0b4 Mon Sep 17 00:00:00 2001 From: exoego Date: Thu, 6 Jun 2024 18:45:41 +0900 Subject: [PATCH] AxiosMockAdapter is no more --- README.md | 2 +- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 20f6671..8bdc621 100644 --- a/README.md +++ b/README.md @@ -349,7 +349,7 @@ This is useful for testing. ```js describe("Feature", () => { it("requests an endpoint", (done) => { - var mock = new AxiosMockAdapter(axios); + var mock = new MockAdapter(axios); mock.onPost("/endpoint").replyOnce(200); feature diff --git a/webpack.config.js b/webpack.config.js index 69db9a0..d628815 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,7 +1,7 @@ module.exports = function (env, argv) { return { output: { - library: "AxiosMockAdapter", + library: "MockAdapter", libraryTarget: "umd", filename: argv.mode === "production"