@jaypie/testkit 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/jaypie.mock.js +1 -1
package/package.json
CHANGED
package/src/jaypie.mock.js
CHANGED
|
@@ -188,7 +188,7 @@ export const expressHandler = vi.fn((handler, props = {}) => {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
const jaypieFunction = jaypieHandler(handler, props);
|
|
191
|
-
return async (req, res = {}, ...extra) => {
|
|
191
|
+
return async (req = {}, res = {}, ...extra) => {
|
|
192
192
|
// For mocking, let's make sure res json, send, and status are functions
|
|
193
193
|
const status = HTTP.CODE.OK;
|
|
194
194
|
if (res && typeof res.status === "function") {
|