json-mock-server
Advanced tools
Comparing version 0.0.1-alpha.5 to 0.0.1-alpha.6
@@ -62,3 +62,2 @@ const Koa = require('koa'); | ||
loadRoutes(initialRoutes); | ||
app.use(router.routes()); | ||
}; | ||
@@ -68,2 +67,3 @@ | ||
currentRoutes = { ...currentRoutes, ...routes }; | ||
router.stack = []; | ||
loadRoutes(currentRoutes); | ||
@@ -70,0 +70,0 @@ }; |
@@ -6,5 +6,5 @@ { | ||
"dependencies": { | ||
"json-mock-server": "0.0.1-alpha.4", | ||
"json-mock-server": "0.0.1-alpha.5", | ||
"mocha": "^5.0.5" | ||
} | ||
} |
@@ -35,5 +35,5 @@ const assert = require('assert'); | ||
return getUser(10).then().catch(err => { | ||
console.log(err); | ||
// assert.deepEqual() | ||
return getUser(10).then(res => { | ||
assert.equal(res.statusCode, 500); | ||
assert.equal(res.statusMessage, 'Internal Server Error'); | ||
}); | ||
@@ -40,0 +40,0 @@ }); |
{ | ||
"name": "json-mock-server", | ||
"version": "0.0.1-alpha.5", | ||
"version": "0.0.1-alpha.6", | ||
"description": "Simple server with routes described as a JSON object", | ||
@@ -5,0 +5,0 @@ "bin": { |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
87864
1