Add test coverage.

This commit is contained in:
David Braun 2017-12-06 14:30:53 -05:00
parent 9da406e58f
commit 4315a28f0c
4 changed files with 37 additions and 7 deletions

View file

@ -223,7 +223,9 @@ const Channel = function(length = 0) {
slice: (start, end = Infinity) => {
const output = Channel();
(async () => {
// Consume values before the starting point.
for (let index = 0; index < start; index++) {
const value = await readOnly.shift();