1
0
mirror of https://github.com/onkelbeh/cheatsheets.git synced 2026-08-15 21:44:51 +02:00
Files
cheatsheets/qunit.md
2014-09-30 10:04:13 +08:00

471 B

title, layout
title layout
Qunit default
QUnit.module('a');
QUnit.test('ok', function (t) { ... });
QUnit.moduleStart(function)
QUnit.moduleEnd(function)

Assertions

t.equal(actual, expected)
t.deepEqual(actual, expected)
t.strictEqual(actual, expected)
t.propEqual(actual, expected)

t.notEqual

t.expect(amount)

Setup and teardown

QUnit.begin(function (details) {
});

QUnit.done(function (details) {
});