mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -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
|
@ -10,13 +10,11 @@
|
|||
*/
|
||||
import request from 'supertest';
|
||||
|
||||
import { AuthConfig } from '../../src/config/auth.config';
|
||||
import { LoginDto } from '../../src/identity/local/login.dto';
|
||||
import { RegisterDto } from '../../src/identity/local/register.dto';
|
||||
import { UpdatePasswordDto } from '../../src/identity/local/update-password.dto';
|
||||
import { UserRelationEnum } from '../../src/users/user-relation.enum';
|
||||
import { checkPassword } from '../../src/utils/password';
|
||||
import { setupSessionMiddleware } from '../../src/utils/session';
|
||||
import { TestSetup, TestSetupBuilder } from '../test-setup';
|
||||
|
||||
describe('Auth', () => {
|
||||
|
@ -28,9 +26,6 @@ describe('Auth', () => {
|
|||
|
||||
beforeAll(async () => {
|
||||
testSetup = await TestSetupBuilder.create().build();
|
||||
|
||||
const authConfig = testSetup.configService.get('authConfig') as AuthConfig;
|
||||
setupSessionMiddleware(testSetup.app, authConfig);
|
||||
await testSetup.app.init();
|
||||
|
||||
username = 'hardcoded';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue