mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 07:04:45 -04:00
Add PublicAPIModule
This adds all controllers needed in the public API (at least as currently specified) and implements some routes under `/me` Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
80e018692b
commit
4799f65aff
9 changed files with 164 additions and 0 deletions
18
src/api/public/notes/notes.controller.spec.ts
Normal file
18
src/api/public/notes/notes.controller.spec.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { NotesController } from './notes.controller';
|
||||
|
||||
describe('Notes Controller', () => {
|
||||
let controller: NotesController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [NotesController],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<NotesController>(NotesController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue