From cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Mar 2019 21:01:33 +0100 Subject: remove node_modules --- node_modules/nomnom/test/callback.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 node_modules/nomnom/test/callback.js (limited to 'node_modules/nomnom/test/callback.js') diff --git a/node_modules/nomnom/test/callback.js b/node_modules/nomnom/test/callback.js deleted file mode 100644 index 3d512dbed..000000000 --- a/node_modules/nomnom/test/callback.js +++ /dev/null @@ -1,33 +0,0 @@ -var nomnom = require("../nomnom"); - -exports.testVersion = function(test) { - test.expect(1); - - nomnom().options({ - date: { - callback: function(date) { - test.equal(date, "2010-02-03", "date should match value") - } - } - }).parse(["--date=2010-02-03"]); - - test.done(); -} - -exports.testReturnString = function(test) { - test.expect(1); - - nomnom().options({ - version: { - flag: true, - callback: function() { - return "v0.3"; - } - } - }) - .printer(function(string) { - test.equal(0, string.indexOf("v0.3")) - test.done(); - }) - .parse(["--version"]); -} \ No newline at end of file -- cgit v1.2.3