mirror of
https://bitbucket.org/siakitem/my-pi.git
synced 2026-08-28 08:35:57 +00:00
feat: vendor permission system source
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { vi } from "vitest";
|
||||
|
||||
/**
|
||||
* A fake `AuthorizerLog` / `DebugReviewLogger`: `review` and `debug` as
|
||||
* `vi.fn()` stubs.
|
||||
*
|
||||
* The return type is intentionally unannotated so callers keep full `Mock`
|
||||
* access (`toHaveBeenCalledWith`, `mock.calls`); the shape structurally
|
||||
* satisfies both the narrow authorizer-log seam and the session logger.
|
||||
*/
|
||||
export function makeAuthorizerLog() {
|
||||
return { review: vi.fn(), debug: vi.fn() };
|
||||
}
|
||||
Reference in New Issue
Block a user