Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
space
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 8, 2023
1 parent d42dfe6 commit 1f0fb6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/internals/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export function createDeferred<T>() {

export const sleep = (ms: number) =>
new Promise((resolve) => setTimeout(resolve, ms));

export const createPromise = <T>(result: () => T, wait = 1) => {
return new Promise<T>((resolve, reject) => {
setTimeout(() => {
Expand Down

0 comments on commit 1f0fb6d

Please sign in to comment.