0.1.1 • Published 2 years ago

p-tape-all-in-list v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

p-tape-dict

Run p-tape test functions from a list, using the function name as the test name.

API

This module exports one function:

pTapeAllInList(opt, testFuncs)

testFuncs is an array of your test implementations.

opt is an optional options object that supports these optional keys:

  • extraApi: An object whose entries shall be assigned onto the test API function, aka the first argument to the test implementations. You'd usually use this for dependency injection.

Usage

For examples, see test/all.mjs in these packages:

Known issues

  • Needs more/better tests and docs.

 

License

ISC