From c71312c22fe0c5e3d55ed8bff99641178f0a9702 Mon Sep 17 00:00:00 2001 From: David Braun Date: Wed, 28 Mar 2018 13:35:45 -0400 Subject: [PATCH] Add some comments. --- lib/index.js | 1 + test/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 6b7a75d..a9bd55c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -38,6 +38,7 @@ const Order = channel => { const prototype = {}; +// Create a new channel with a buffer the size of "length". const Channel = function(length = 0) { let buffered = 0; let closed = false; diff --git a/test/index.js b/test/index.js index 33c1125..1b79cd6 100644 --- a/test/index.js +++ b/test/index.js @@ -18,7 +18,7 @@ const assertRejects = async (callback, reason) => { assert.fail(null, reason, `Missing expected rejection.`); }; -describe(`Channel`, function() { +describe(`Channel function`, function() { it(`allows the use of new`, function() { return new Channel(); });