Skip to content
executable specification for Stream (make testing streams easy)
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
index.js
package.json
readme.markdown
states.markdown
stream_spec.md

readme.markdown

StreamSpec

stream-spec is a executable specification for Stream. it's purpose it to make it easy to test user-land streams have correct behavour.

illustrated explained

var spec = require('stream-spec')
spec(stream)
  .readableWritable({error: false})
  .pausable()
  .validateOnExit()

stream.write('data')
//...
Something went wrong with that request. Please try again.