This commit is contained in:
1 parent
8efd032cc6
commit
df38dccbf1
735 files changed
+128321
-120870
No files matched your search
@@ -2,10 +2,10 @@ import { describe, expect, it } from "vitest";
|
||||
import { personalTokenScope } from "@/lib/auth/personal-token-scope";
|
||||
|
||||
describe("personalTokenScope", () => {
|
||||
it("scopes token operations to the user model and owner id", () => {
|
||||
expect(personalTokenScope(42)).toEqual({
|
||||
tokenableId: 42n,
|
||||
tokenableType: "App\\Models\\User",
|
||||
});
|
||||
});
|
||||
it("scopes token operations to the user model and owner id", () => {
|
||||
expect(personalTokenScope(42)).toEqual({
|
||||
tokenableId: 42n,
|
||||
tokenableType: "App\\Models\\User",
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user