mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
- Bump `jsonv-ts` dependency to 0.8.6. - Refactor permission checks in the `Guard` class to improve context validation and error handling. - Update tests to reflect changes in permission handling, ensuring robust coverage for new scenarios. - Introduce new test cases for data permissions, enhancing overall test coverage and reliability.
21 lines
683 B
TypeScript
21 lines
683 B
TypeScript
import { describe, it, expect } from "bun:test";
|
|
import { SystemController } from "modules/server/SystemController";
|
|
import { createApp } from "core/test/utils";
|
|
import type { CreateAppConfig } from "App";
|
|
import { getPermissionRoutes } from "auth/middlewares/permission.middleware";
|
|
|
|
async function makeApp(config: Partial<CreateAppConfig> = {}) {
|
|
const app = createApp(config);
|
|
await app.build();
|
|
return app;
|
|
}
|
|
|
|
describe.skip("SystemController", () => {
|
|
it("...", async () => {
|
|
const app = await makeApp();
|
|
const controller = new SystemController(app);
|
|
const hono = controller.getController();
|
|
console.log(getPermissionRoutes(hono));
|
|
});
|
|
});
|