Add some comments.

This commit is contained in:
David Braun 2018-03-28 13:35:45 -04:00
parent 57247c6d10
commit c71312c22f
No known key found for this signature in database
GPG key ID: 87EC41ADF710B7E2
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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();
}); });