Add tests for lib/util/noop.js

This commit is contained in:
Robin North authored and Behind The Math committed 2018-04-09 23:30:57 -04:00
1 parent 17d8262025
commit 688810fbae
1 file changed
+9
+9
View File
@@ -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()
})