mirror of
https://github.com/bvanroll/rpiRadio.git
synced 2025-08-31 04:52:56 +00:00
Initial Commit
This commit is contained in:
17
ProjectNow/NodeServer/node_modules/pause-stream/test/index.js
generated
vendored
Normal file
17
ProjectNow/NodeServer/node_modules/pause-stream/test/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var spec = require('stream-spec')
|
||||
var tester = require('stream-tester')
|
||||
var ps = require('..')()
|
||||
|
||||
spec(ps)
|
||||
.through({strict: false})
|
||||
.validateOnExit()
|
||||
|
||||
var master = tester.createConsistent
|
||||
|
||||
tester.createRandomStream(1000) //1k random numbers
|
||||
.pipe(master = tester.createConsistentStream())
|
||||
.pipe(tester.createUnpauseStream())
|
||||
.pipe(ps)
|
||||
.pipe(tester.createPauseStream())
|
||||
.pipe(master.createSlave())
|
||||
|
Reference in New Issue
Block a user