axios-mock-shim
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -42,3 +42,3 @@ /* eslint-disable */ | ||
*/ | ||
function mockHandler({ method, svc, config }, mockReply) { | ||
function mockHandler({ method, svc, data }, mockReply) { | ||
const mock = this; | ||
@@ -56,3 +56,3 @@ // handler choose | ||
// config handling | ||
mock[`on${firstUp(method)}`](svc, ...config) | ||
mock[`on${firstUp(method)}`](svc, data) | ||
.reply.apply(mock, isFn(handler) ? [handler] : handler); | ||
@@ -115,2 +115,3 @@ } | ||
svc, | ||
data, | ||
config: configHandler({ methodUp, beforeRequest, data }), | ||
@@ -117,0 +118,0 @@ }; |
{ | ||
"name": "axios-mock-shim", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "A plugin build for easily using axios-mock-adapter with axios", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -9,2 +9,3 @@ export interface MockAdapterOptions { | ||
svc: string; | ||
data?: Object; | ||
config?: Array<any>; | ||
@@ -11,0 +12,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19381
404