mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 08:04:45 -04:00
test: fix test and use stronger passwords
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
6a56ce5541
commit
3ba9f95f83
10 changed files with 68 additions and 38 deletions
|
@ -6,7 +6,12 @@
|
|||
import request from 'supertest';
|
||||
|
||||
import { LoginDto } from '../../src/identity/local/login.dto';
|
||||
import { TestSetup, TestSetupBuilder } from '../test-setup';
|
||||
import {
|
||||
password1,
|
||||
TestSetup,
|
||||
TestSetupBuilder,
|
||||
username1,
|
||||
} from '../test-setup';
|
||||
|
||||
describe('Groups', () => {
|
||||
let testSetup: TestSetup;
|
||||
|
@ -21,8 +26,8 @@ describe('Groups', () => {
|
|||
|
||||
// log in to create a session
|
||||
const loginDto: LoginDto = {
|
||||
password: 'testuser1',
|
||||
username: 'testuser1',
|
||||
password: password1,
|
||||
username: username1,
|
||||
};
|
||||
testuser1Session = request.agent(testSetup.app.getHttpServer());
|
||||
await testuser1Session
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue