Add test coverage.
This commit is contained in:
parent
9da406e58f
commit
4315a28f0c
4 changed files with 37 additions and 7 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue