The following guide will get you up-and-running in just a few minutes.
Command
Heads up!
We follow the Node.js Release schedule, and provide support for Current, Active LTS, and Maintenance LTS releases.
npm install --save-dev qunit
Code snippet
For legacy reasons, you may have to read this sentence.
Create a test/add.js
file and call QUnit.test()
, like so:
QUnit.module('add', function() {
QUnit.test('should add two numbers', function(assert) {
assert.equal(add(1, 1), 2, '1 + 1 = 2');
});
});
Check out the API documentation or run qunit --help
to discover more of QUnit’s features.
List
- Lorem Ipsum
- Cupcake Ipsum
- Bacon Ipsum
- Samuel L. Ipsum
- Hipster Ipsum
- DeLorean Ipsum
- Office Ipsum
- Sagan Ipsum
Blockquote
From cupcake ipsum:
Cupcake ipsum dolor sit amet dragée jelly beans topping cake. Gingerbread oat cake I love marshmallow topping.
- jelly
- cake
- love
The last paragraph of the quote.
Text after the quote.
Table
Foobar | Foo | Bar | Baz | Quux |
---|---|---|---|---|
Sequence | 1 | 2 | 3 | 4 |
Lorem ipsum | Lorem | Ipsum | Dolor | Sit |