Add length.

This commit is contained in:
David Braun 2017-10-18 15:00:15 -04:00
parent 3af150ae49
commit a0a68ab8d1
3 changed files with 14 additions and 1 deletions

View file

@ -217,6 +217,10 @@ describe(`Channel object`, function() {
assert.equal(await Channel.of(`a`, `b`, `c`).join(), `a,b,c`);
});
it(`length`, function() {
assert.equal(Channel(42).length, 42);
});
it(`map`, async function() {
assert.deepEqual(
await Channel.of(`a`, `b`, `c`)