Add tests for lib/util/noop.js

This commit is contained in:
Robin North
2018-01-25 10:08:23 +00:00
committed by Behind The Math
parent 17d8262025
commit 688810fbae

9
tests/lib/util/noop.js Normal file
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()
})