Expect for a condition to go from false to true when executing a specific code.
This is generally equivalent to assert(!test); run(); assert(test); but helps prevent mistakes if the two test conditions weren't identical, or if they became true because of another side effect rather than the run() function.
A function that should resolve to falsy value before run() is invoked (tested immediatley and after one tick), and to a truthy value once run() has completed
Expect for a condition to go from false to true when executing a specific code.
This is generally equivalent to
assert(!test); run(); assert(test);but helps prevent mistakes if the two test conditions weren't identical, or if they became true because of another side effect rather than the run() function.