A QUnit plugin for asserting the proper sequence in which the code should execute.
This plugin for QUnit adds a
step assertion method to test
the proper sequence in which the code should execute.
expected: The expected step number (assertion sequence index)
message: Optional message, same as for other assertions
test"example test"assertstep2 "function y should be called first";assertstep1;y;x;;
For more examples, refer to the unit tests.