diff --git a/src/index.js b/src/index.js index c9c7af7..52ccfbe 100644 --- a/src/index.js +++ b/src/index.js @@ -34,7 +34,7 @@ function MockAdapter(axiosInstance, options) { this.axiosInstance = axiosInstance; this.originalAdapter = axiosInstance.defaults.adapter; this.delayResponse = options && options.delayResponse > 0 ? options.delayResponse : null; - axiosInstance.defaults.adapter = adapter.call(this); + axiosInstance.defaults.adapter = this.adapter.call(this); } }