Skip to content

Commit

Permalink
Use the adapter on the MockAdapter instance (#110)
Browse files Browse the repository at this point in the history
This allows extending of the default MockAdapter adapter
  • Loading branch information
noah-potter authored and ctimmerm committed Feb 7, 2018
1 parent bedca95 commit 0d315fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 0d315fd

Please # to comment.