diff --git a/qunit.md b/qunit.md index a62f622d2..830d449cb 100644 --- a/qunit.md +++ b/qunit.md @@ -5,9 +5,21 @@ layout: default QUnit.module('a'); QUnit.test('ok', function (t) { ... }); + +### Hooks + + // each test + QUnit.testStart(function) + QUnit.testEnd(function) + + // each module QUnit.moduleStart(function) QUnit.moduleEnd(function) + // all + QUnit.begin(function) + QUnit.done(function) + ### Assertions t.equal(actual, expected) @@ -18,11 +30,3 @@ layout: default t.notEqual t.expect(amount) - -### Setup and teardown - - QUnit.begin(function (details) { - }); - - QUnit.done(function (details) { - });