Skip to content

Commit 83a044b

Browse files
committed
Add a wait function in tests
1 parent c07aff4 commit 83a044b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,7 @@ function paste(textarea, data) {
9797
})
9898
textarea.dispatchEvent(event)
9999
}
100+
101+
function wait(ms) {
102+
return new Promise(resolve => setTimeout(resolve, ms))
103+
}

0 commit comments

Comments
 (0)