Comparing version 3.5.0 to 3.5.1
@@ -18,3 +18,3 @@ { | ||
}, | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"main": "lib/cot.js", | ||
@@ -34,9 +34,9 @@ "dependencies": { | ||
"devDependencies": { | ||
"bluebird": "^3.4.0", | ||
"config": "^1.24.0", | ||
"doctoc": "^1.2.0", | ||
"git-hooks": "^1.1.7", | ||
"mocha": "^2.0.1", | ||
"should": "^11.1.2", | ||
"standard": "^8.6.0" | ||
"bluebird": "^3.5.1", | ||
"config": "^1.30.0", | ||
"doctoc": "^1.3.1", | ||
"git-hooks": "^1.1.10", | ||
"mocha": "^5.1.1", | ||
"should": "^13.2.1", | ||
"standard": "^10.0.3" | ||
}, | ||
@@ -43,0 +43,0 @@ "standard": { |
@@ -6,7 +6,3 @@ require('should') | ||
const catch404 = function (err) { | ||
if (err.statusCode === 404) { | ||
return | ||
} else { | ||
throw err | ||
} | ||
if (err.statusCode !== 404) throw err | ||
} | ||
@@ -13,0 +9,0 @@ |
@@ -8,7 +8,7 @@ const should = require('should') | ||
describe('DbHandle', function () { | ||
describe('Views', function () { | ||
const db = cot(config.cot)(config.dbName, 'test') | ||
beforeEach(function (done) { | ||
return db.jsonRequest('DELETE', `/${config.dbName}`) | ||
db.jsonRequest('DELETE', `/${config.dbName}`) | ||
.then(() => db.jsonRequest('PUT', `/${config.dbName}`)) | ||
@@ -38,3 +38,3 @@ .then(function () { | ||
return Promise.all(docPromises) | ||
Promise.all(docPromises) | ||
.then(() => done()) | ||
@@ -41,0 +41,0 @@ }) |
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
87124
1055