Skip to content

Commit b2e8200

Browse files
committed
Ignore lines for non-jest environment
1 parent 167e1f9 commit b2e8200

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/act-compat.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ function actPolyfill(cb) {
1616
}
1717

1818
function getGlobalThis() {
19+
/* istanbul ignore else */
1920
if (typeof self !== 'undefined') {
2021
return self
2122
}
23+
/* istanbul ignore next */
2224
if (typeof window !== 'undefined') {
2325
return window
2426
}
27+
/* istanbul ignore next */
2528
if (typeof global !== 'undefined') {
2629
return global
2730
}
31+
/* istanbul ignore next */
2832
throw new Error('unable to locate global object')
2933
}
3034

0 commit comments

Comments
 (0)