diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/test/security_validation.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/share/www/script/test/security_validation.js b/share/www/script/test/security_validation.js index 9ecb9ba0..d618a5ac 100644 --- a/share/www/script/test/security_validation.js +++ b/share/www/script/test/security_validation.js @@ -187,6 +187,12 @@ couchTests.security_validation = function(debug) { T(db.setDbProperty("_security", {admin_override : true}).ok); T(db.save(doc).ok); + // try to do something lame + try { + db.setDbProperty("_security", ["foo"]); + T(false && "can't do this"); + } catch(e) {} + // go back to normal T(db.setDbProperty("_security", {admin_override : false}).ok); |