Skip to content

Commit

Permalink
Make flushPromises util async
Browse files Browse the repository at this point in the history
  • Loading branch information
SHA-4 committed Mar 5, 2020
1 parent 15e9ae8 commit 0561710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -23,6 +23,6 @@ export function isString (value: unknown): value is string {
return typeof value === 'string' || value instanceof String;
}

export function flushPromises () {
export async function flushPromises () {
return new Promise((resolve, _reject) => setImmediate(resolve));
}

0 comments on commit 0561710

Please sign in to comment.