mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
few more tests for permissions and strategies
reset log flags at end of log test
This commit is contained in:
@@ -15,10 +15,8 @@
|
||||
**/
|
||||
|
||||
var should = require("should");
|
||||
|
||||
var permissions = require("../../../../red/api/auth/permissions");
|
||||
|
||||
|
||||
describe("Auth permissions", function() {
|
||||
describe("hasPermission", function() {
|
||||
it('a user with no permissions',function() {
|
||||
@@ -34,5 +32,8 @@ describe("Auth permissions", function() {
|
||||
permissions.hasPermission({permissions:"read"},"write").should.be.false;
|
||||
permissions.hasPermission({permissions:"read"},"node.write").should.be.false;
|
||||
});
|
||||
it('a user with foo permissions',function() {
|
||||
permissions.hasPermission({permissions:"foo"},"foo").should.be.false;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user