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

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

No files matched your search

@@ -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.'
);
}