# 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
26 lines
752 B
TypeScript
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();
|
|
});
|
|
});
|