mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 19:26:31 -05:00
test(private-api): fix aliases expect
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
b1d4696895
commit
ed5367d456
1 changed files with 7 additions and 1 deletions
|
@ -104,7 +104,13 @@ describe('History', () => {
|
||||||
.expect(201);
|
.expect(201);
|
||||||
const userEntries = await testSetup.historyService.getEntriesByUser(user);
|
const userEntries = await testSetup.historyService.getEntriesByUser(user);
|
||||||
expect(userEntries.length).toEqual(1);
|
expect(userEntries.length).toEqual(1);
|
||||||
expect(userEntries[0].note.aliases).toEqual(note2.aliases);
|
expect(userEntries[0].note.aliases[0].name).toEqual(
|
||||||
|
note2.aliases[0].name,
|
||||||
|
);
|
||||||
|
expect(userEntries[0].note.aliases[0].primary).toEqual(
|
||||||
|
note2.aliases[0].primary,
|
||||||
|
);
|
||||||
|
expect(userEntries[0].note.aliases[0].id).toEqual(note2.aliases[0].id);
|
||||||
expect(userEntries[0].user.username).toEqual(user.username);
|
expect(userEntries[0].user.username).toEqual(user.username);
|
||||||
expect(userEntries[0].pinStatus).toEqual(pinStatus);
|
expect(userEntries[0].pinStatus).toEqual(pinStatus);
|
||||||
expect(userEntries[0].updatedAt).toEqual(lastVisited);
|
expect(userEntries[0].updatedAt).toEqual(lastVisited);
|
||||||
|
|
Loading…
Reference in a new issue