couchdb-secure
Advanced tools
Comparing version 1.3.5 to 1.3.6
{ | ||
"name": "couchdb-secure", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Write couchdb security object from file or directory.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,2 +28,22 @@ var test = require('tape') | ||
test('configure from commonjs', function(t) { | ||
clear(function() { | ||
secure(url + '/' + dbname, path.join(__dirname, 'fixtures', 'security.js'), function(error, response) { | ||
t.notOk(error, 'no error occured') | ||
t.ok(response.ok, 'response is ok') | ||
t.end() | ||
}) | ||
}) | ||
}) | ||
test('configure from commonjs/index', function(t) { | ||
clear(function() { | ||
secure(url + '/' + dbname, path.join(__dirname, 'fixtures', 'security'), function(error, response) { | ||
t.notOk(error, 'no error occured') | ||
t.ok(response.ok, 'response is ok') | ||
t.end() | ||
}) | ||
}) | ||
}) | ||
test('nano object as url', function(t) { | ||
@@ -30,0 +50,0 @@ secure(db, path.join(__dirname, 'fixtures', 'security.json'), function(error, response) { |
5003
10
130