All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 50s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
254 B
TypeScript
9 lines
254 B
TypeScript
import { assert, assertFalse } from "@std/assert";
|
|
import { isRole } from "../user.ts";
|
|
|
|
Deno.test("isRole", () => {
|
|
assert(isRole("user") && isRole("moderator") && isRole("admin"));
|
|
assertFalse(isRole("root"));
|
|
assertFalse(isRole(undefined));
|
|
});
|