tape-co
Generator interface for tape
Last updated 4 years ago by ashaffer88 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install tape-co 
SYNC missed versions from official npm registry.

tape-co

js-standard-style

Generator interface for tape

Installation

$ npm install tape-co

Usage

Just use it like tape, except your functions will be wrapped in co and you will no longer have to remember to call .end().

import test from 'tape-co'
import myThing from '..'

test('my thing should work', function *(t) {
  const result = yield myThing(someValue)
  t.ok(validate(result))
})

There's not a lot of documentation because that's really all there is to it. test.only/test.skip will still work as normal.

Why not just use AVA?

Mostly because ava doesn't work in browsers yet.

License

MIT

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (2)
Dev Dependencies (5)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |