tape-bdd 0.0.1 • Public • Published 9 years ago tape-bdd
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.
Usage
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 ' ) ;
} ) ;
} ) ;
Is equivalent to:
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 ' ) ;
} ) ;
Versions Current Tags Version
Downloads (Last 7 Days) 0.0.1
2
Version History Version
Downloads (Last 7 Days) 0.0.1
2
Package Sidebar Install Downloads Weekly Downloads