mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
fix(backend): format code
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
1d31a1b11f
commit
0111f2b65e
4 changed files with 16 additions and 24 deletions
|
@ -485,9 +485,8 @@ describe('Notes', () => {
|
|||
});
|
||||
|
||||
it("doesn't do anything if the user is the owner", async () => {
|
||||
const note = await testSetup.notesService.getNoteByIdOrAlias(
|
||||
user1NoteAlias,
|
||||
);
|
||||
const note =
|
||||
await testSetup.notesService.getNoteByIdOrAlias(user1NoteAlias);
|
||||
await testSetup.permissionsService.removeUserPermission(note, user2);
|
||||
|
||||
const response = await agent
|
||||
|
@ -533,9 +532,8 @@ describe('Notes', () => {
|
|||
});
|
||||
|
||||
it('works', async () => {
|
||||
const note = await testSetup.notesService.getNoteByIdOrAlias(
|
||||
user1NoteAlias,
|
||||
);
|
||||
const note =
|
||||
await testSetup.notesService.getNoteByIdOrAlias(user1NoteAlias);
|
||||
await testSetup.permissionsService.setUserPermission(
|
||||
note,
|
||||
user2,
|
||||
|
@ -607,9 +605,8 @@ describe('Notes', () => {
|
|||
});
|
||||
|
||||
it('works', async () => {
|
||||
const note = await testSetup.notesService.getNoteByIdOrAlias(
|
||||
user1NoteAlias,
|
||||
);
|
||||
const note =
|
||||
await testSetup.notesService.getNoteByIdOrAlias(user1NoteAlias);
|
||||
await testSetup.permissionsService.setGroupPermission(
|
||||
note,
|
||||
group1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue