mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 15:44:45 -04:00
fix(commons): Move "wait for other promises to finish" util to commons
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
96b08615e6
commit
d76714f2a2
5 changed files with 3 additions and 14 deletions
|
@ -17,7 +17,6 @@ import { RealtimeNoteService } from './realtime-note.service';
|
|||
import { mockAwareness } from './test-utils/mock-awareness';
|
||||
import { mockRealtimeNote } from './test-utils/mock-realtime-note';
|
||||
import { mockWebsocketDoc } from './test-utils/mock-websocket-doc';
|
||||
import { waitForOtherPromisesToFinish } from './test-utils/wait-for-other-promises-to-finish';
|
||||
import { WebsocketDoc } from './websocket-doc';
|
||||
|
||||
describe('RealtimeNoteService', () => {
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/**
|
||||
* Waits until all other pending promises are processed.
|
||||
*/
|
||||
export async function waitForOtherPromisesToFinish(): Promise<void> {
|
||||
return await new Promise((resolve) => process.nextTick(resolve));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue