stakit-test-writer
A small writer utility for testing Stakit modules
Installation
npm i stakit-test-writer
Example
var tape = // with tape-promise in realityvar stakit = var testWriter =
API
writer = testWriter()
Returns a new test writer instance.
writer.write
Stakit compatible write method.
writer.get(filepath)
Returns the mocked value of the "written" file at filepath
.