mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 09:45:37 -04:00
refactor: replace TypeORM with knex.js
Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
6e151c8a1b
commit
4bd49085c6
241 changed files with 4577 additions and 6636 deletions
|
@ -53,9 +53,10 @@ describe('Auth', () => {
|
|||
.set('Content-Type', 'application/json')
|
||||
.send(JSON.stringify(registrationDto))
|
||||
.expect(201);
|
||||
const newUser = await testSetup.userService.getUserByUsername(username, [
|
||||
UserRelationEnum.IDENTITIES,
|
||||
]);
|
||||
const newUser = await testSetup.userService.getUserDtoByUsername(
|
||||
username,
|
||||
[UserRelationEnum.IDENTITIES],
|
||||
);
|
||||
expect(newUser.displayName).toEqual(displayName);
|
||||
await expect(newUser.identities).resolves.toHaveLength(1);
|
||||
await expect(
|
||||
|
@ -115,7 +116,7 @@ describe('Auth', () => {
|
|||
.expect(400);
|
||||
expect(response.text).toContain('PasswordTooWeakError');
|
||||
await expect(() =>
|
||||
testSetup.userService.getUserByUsername(username, [
|
||||
testSetup.userService.getUserDtoByUsername(username, [
|
||||
UserRelationEnum.IDENTITIES,
|
||||
]),
|
||||
).rejects.toThrow(NotInDBError);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue