Menu

gitpiper

Qunit Cheat Sheet in April 2024

Last Updated: 20 April 2024

README.md

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)

338+ more cheat sheets for you in April 2024

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️

© 2024 GitPiper. All rights reserved

Rackpiper Technology Inc

Company

About UsBlogContact

Subscribe to our Newsletter

Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️