mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
feat: add base implementation for realtime communication
Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu> Co-authored-by: Erik Michelson <github@erik.michelson.eu> Co-authored-by: Philip Molares <philip.molares@udo.edu> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de> Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
d9ef44766d
commit
ce29cc0a2e
44 changed files with 2151 additions and 65 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { getConfigToken } from '@nestjs/config';
|
||||
import { WsAdapter } from '@nestjs/platform-ws';
|
||||
import { Test } from '@nestjs/testing';
|
||||
import request from 'supertest';
|
||||
|
||||
|
@ -50,6 +51,7 @@ describe('App', () => {
|
|||
* is done.
|
||||
*/
|
||||
const app = moduleRef.createNestApplication();
|
||||
app.useWebSocketAdapter(new WsAdapter(app));
|
||||
await app.init();
|
||||
await request(app.getHttpServer()).get('/').expect(404);
|
||||
await app.close();
|
||||
|
|
|
@ -21,7 +21,6 @@ import { TokenAuthGuard } from '../src/auth/token.strategy';
|
|||
import { AuthorsModule } from '../src/authors/authors.module';
|
||||
import { AppConfig } from '../src/config/app.config';
|
||||
import { AuthConfig } from '../src/config/auth.config';
|
||||
import { DatabaseConfig } from '../src/config/database.config';
|
||||
import { MediaConfig } from '../src/config/media.config';
|
||||
import appConfigMock from '../src/config/mock/app.config.mock';
|
||||
import authConfigMock from '../src/config/mock/auth.config.mock';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue