Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

tapef

0.0.1 • Public • Published

tapef

Tape bred uncermoniously with Mocha. Literally Mocha's reporter hacked into Tape.

The way I use this is to drop it in temporarily as a debugging tool when comparing big objects or strings, then switch back to vanilla Tape when I'm done.

Caveats

Doesn't play well alongside other Tape tests just yet.

Usage

Just replace require('tape') with require('tapef').

var test = require('tapef')
 
// Exactly the same api as Tape.
test('equal numbers', function(t) {
  t.equal(1, 2)
  t.end()
})
 
test('equal string', function(t) {
  var a = 'apple'
  var b = 'banana'
  t.equal(a, b)
  t.end()
})
 
// etc
 

Output

image

image

image

License

MIT

install

npm i tapef

Downloadsweekly downloads

3

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar