Add length
.
This commit is contained in:
parent
3af150ae49
commit
a0a68ab8d1
3 changed files with 14 additions and 1 deletions
|
@ -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`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue