Files
gitmost/apps/server/src/core/page/page.controller.spec.ts
claude code agent 227 7e26239c3f Merge remote-tracking branch 'gitea/develop' into fix/review-batch-2
# Conflicts:
#	AGENTS.md
#	CHANGELOG.md
#	README.md
#	apps/server/src/collaboration/collaboration.handler.ts
#	apps/server/src/common/helpers/prosemirror/html-embed.spec.ts
#	apps/server/src/common/helpers/prosemirror/html-embed.util.ts
#	apps/server/src/core/ai-chat/public-share-chat.service.ts
#	apps/server/src/core/ai-chat/public-share-chat.spec.ts
#	apps/server/src/core/ai-chat/public-share-workspace-limiter.ts
#	apps/server/src/core/page/services/page.service.ts
#	apps/server/src/core/page/transclusion/transclusion.service.ts
#	apps/server/src/integrations/import/services/file-import-task.service.ts
#	apps/server/src/integrations/import/services/import.service.ts
2026-06-21 05:32:44 +03:00

26 lines
752 B
TypeScript

import { PageController } from './page.controller';
// Direct instantiation with stub deps. The Test.createTestingModule form failed
// to resolve PageService's injected tokens at compile(), and this smoke test only
// needs the controller to construct.
describe('PageController', () => {
let controller: PageController;
beforeEach(() => {
controller = new PageController(
{} as any, // pageService
{} as any, // pageRepo
{} as any, // pageHistoryService
{} as any, // spaceAbility
{} as any, // pageAccessService
{} as any, // backlinkService
{} as any, // labelService
{} as any, // auditService
);
});
it('should be defined', () => {
expect(controller).toBeDefined();
});
});