Skip to content

Commit 0cc50e1

Browse files
committed
Use enumerated readyState for XHR.
1 parent 0a47492 commit 0cc50e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/browser/test/e2e/utils/browserHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function waitForXHR(xhr: { readyState: number }, cb: () => unknown): unknown {
2-
if (xhr.readyState === 4) {
2+
if (xhr.readyState === XMLHttpRequest.DONE) {
33
return cb();
44
}
55

0 commit comments

Comments
 (0)