mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
This reverts commit e9c1445ba0.
This commit is contained in:
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.'
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user