mirror of
https://github.com/onkelbeh/cheatsheets.git
synced 2026-01-12 22:12:04 +01:00
- Update some sheets which have very long sections - Remove `layout: 2017/sheet` (everything has the same layout now) - Remove outdated sheets
672 B
672 B
title, category, intro
| title | category | intro |
|---|---|---|
| Qunit | JavaScript libraries | A quick reference for the [QUnit](https://yarnpkg.com/package/qunit) testing library in JavaScript. |
QUnit.module('a')
QUnit.test('ok', function (t) {
/* ... */
})
Hooks
Each test
// 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)
t.deepEqual(actual, expected)
t.strictEqual(actual, expected)
t.propEqual(actual, expected)
t.notEqual(actual, expected)
t.expect(amount)