From 688810fbae9022e15f7a1ce0254d332cade00f63 Mon Sep 17 00:00:00 2001 From: Robin North Date: Thu, 25 Jan 2018 10:08:23 +0000 Subject: [PATCH] Add tests for `lib/util/noop.js` --- tests/lib/util/noop.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/lib/util/noop.js diff --git a/tests/lib/util/noop.js b/tests/lib/util/noop.js new file mode 100644 index 0000000..b9eda26 --- /dev/null +++ b/tests/lib/util/noop.js @@ -0,0 +1,9 @@ +var tape = require("tape") + +var noop = require("../../../lib/util/noop") + +tape("test noop function", function(t) { + t.equal(typeof noop, "function", "noop is a function") + t.equal(noop(), undefined, "noop() returns nothing") + t.end() +})