Add some comments.
This commit is contained in:
parent
57247c6d10
commit
c71312c22f
2 changed files with 2 additions and 1 deletions
|
@ -38,6 +38,7 @@ const Order = channel => {
|
||||||
|
|
||||||
const prototype = {};
|
const prototype = {};
|
||||||
|
|
||||||
|
// Create a new channel with a buffer the size of "length".
|
||||||
const Channel = function(length = 0) {
|
const Channel = function(length = 0) {
|
||||||
let buffered = 0;
|
let buffered = 0;
|
||||||
let closed = false;
|
let closed = false;
|
||||||
|
|
|
@ -18,7 +18,7 @@ const assertRejects = async (callback, reason) => {
|
||||||
assert.fail(null, reason, `Missing expected rejection.`);
|
assert.fail(null, reason, `Missing expected rejection.`);
|
||||||
};
|
};
|
||||||
|
|
||||||
describe(`Channel`, function() {
|
describe(`Channel function`, function() {
|
||||||
it(`allows the use of new`, function() {
|
it(`allows the use of new`, function() {
|
||||||
return new Channel();
|
return new Channel();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue