-
Notifications
You must be signed in to change notification settings - Fork 0
Mocha Basic Blocks
Luis Filipe Magalhaes Pimenta edited this page Feb 2, 2017
·
1 revision
Basic blocks are:
- describe: this groups a set of tests
- it: testcase
Example:
describe("Weekday - getWeekDay", function () {
"use strict";
it("Should return correct day for monday");
});
Please not that the form of each is:
describe(<somSstuffString>, function () {
it(<someStuffString>, function () {
<someCodeExpressions>
});
});