File: README.md

package info (click to toggle)
node-he 1.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,612 kB
  • sloc: javascript: 19,100; makefile: 3
file content (20 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Step - A QUnit addon for testing execution order
================================

This addon for QUnit adds a `QUnit.step` method that allows you to assert
the proper sequence in which the code should execute.

### Example ###

```js
test("example test", function () {
  function x() {
    QUnit.step(2, "function y should be called first");
  }
  function y() {
    QUnit.step(1);
  }
  y();
  x();
});
```