mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
fix: Remove unnecessary flow expression (#31)
This commit is contained in:
committed by
Michał Pierzchała
parent
a39f879288
commit
a066544019
@@ -5,7 +5,7 @@ export default function waitForExpect<T: *>(
|
||||
interval: number = 50
|
||||
): Promise<T> {
|
||||
const startTime = Date.now();
|
||||
return new Promise<T>((resolve, reject) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const rejectOrRerun = error => {
|
||||
if (Date.now() - startTime >= timeout) {
|
||||
reject(error);
|
||||
|
||||
Reference in New Issue
Block a user