mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
util.roles: Fix tests to use autogenerated role id
This commit is contained in:
parent
e3d1958cc4
commit
c6c5fec97e
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ describe("util.roles", function ()
|
|||
id = "test-role-2";
|
||||
name = "Test Role 2";
|
||||
});
|
||||
assert.truthy(tostring(test_role_2):find("test-role-2", 1, true));
|
||||
assert.truthy(tostring(test_role_2):find(test_role_2.id, 1, true));
|
||||
assert.truthy(tostring(test_role_2):find("Test Role 2", 1, true));
|
||||
end);
|
||||
it("is restrictive by default", function ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue