Revert "Add regression test for #18497 (#18538)" (#19215)

This reverts commit e9c1445ba0.
This commit is contained in:
Dan Abramov
2020-06-30 13:38:31 +01:00
committed by GitHub
parent b621dab5d4
commit 47ff31a77a
2 changed files with 1 additions and 43 deletions

View File

@@ -20,9 +20,7 @@ function assertYieldsWereCleared(Scheduler) {
const actualYields = Scheduler.unstable_clearYields();
if (actualYields.length !== 0) {
throw new Error(
'Log of yielded values is not empty: ' +
JSON.stringify(actualYields) +
'. ' +
'Log of yielded values is not empty. ' +
'Call expect(Scheduler).toHaveYielded(...) first.'
);
}