util.roles: Fix tests to use autogenerated role id

This commit is contained in:
Matthew Wild 2022-10-08 20:39:14 +01:00
parent e3d1958cc4
commit c6c5fec97e

View file

@ -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 ()