Update qunit.
This commit is contained in:
parent
651c9688d8
commit
1f4d969077
20
qunit.md
20
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) {
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue