mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-12 22:26:08 -04:00
test: test don't need to set up sessions by themselves
The setup is handled inside TestSetupBuilder. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
9030488025
commit
9c6d3d9dab
6 changed files with 0 additions and 31 deletions
|
@ -7,10 +7,8 @@ import { promises as fs } from 'fs';
|
|||
import { join } from 'path';
|
||||
import request from 'supertest';
|
||||
|
||||
import { AuthConfig } from '../../src/config/auth.config';
|
||||
import { NotInDBError } from '../../src/errors/errors';
|
||||
import { User } from '../../src/users/user.entity';
|
||||
import { setupSessionMiddleware } from '../../src/utils/session';
|
||||
import { TestSetup, TestSetupBuilder } from '../test-setup';
|
||||
|
||||
describe('Notes', () => {
|
||||
|
@ -32,9 +30,6 @@ describe('Notes', () => {
|
|||
uploadPath =
|
||||
testSetup.configService.get('mediaConfig').backend.filesystem.uploadPath;
|
||||
|
||||
const authConfig = testSetup.configService.get('authConfig') as AuthConfig;
|
||||
setupSessionMiddleware(testSetup.app, authConfig);
|
||||
|
||||
await testSetup.app.init();
|
||||
|
||||
user = await testSetup.userService.createUser('hardcoded', 'Testy');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue