Tape-BDD essentially wraps tape and provides a more Mocha-style interface for
BDD and automatically handling things like TAP planning and assertion names. It
assumes one assertion per test.
var describe = require('tape-bdd');
describe('plus', function(it) {
it('should add one and two', function(assert) {
assert.equal(1 + 3, 3);
});
it('should add strings', function(assert) {
assert.equal('foo' + 'bar', 'foobar');
});
});
var test = require('tape');
test('plus', function(t) {
t.plan(2);
t.equal(1 + 2, 3, 'should add one and two');
t.equal('foo' + 'bar', 'foobar', 'should add strings');
});