0.0.0-alpha.2a • Published 5 years ago
finjan v0.0.0-alpha.2a
finjan
☕️ Just test harmony modules
Work in progress
finjan **/spec.mjs
Pass in filenames to import as tests.
Options
name | Value |
---|---|
require (r) | one or more files to import before the tests |
verbose (v) | Print stack trace for each error |
Structure of spec/tests file
describe('my suit', function() {
it('Should pass', function() {
assert(!!1, true);
});
it('Should pass', async function() {
assert.equal(await square(2), 4);
});
});
Create a scope with describe
and register tests with it
Additional methods:
Method | Meaning |
---|---|
before | Runs before all it s in a describe |
beforeEach | Runs before each it in a describe |
afterEach | Runs after each it in a describe |
after | Runs after all it s in a describe |
0.0.0-alpha.3a
5 years ago
0.0.0-alpha.2a
5 years ago
0.0.0-alpha.2
5 years ago
0.0.0-alpha.1
5 years ago
0.0.0-alpha
5 years ago