From c7304ff37672db2ebe7b26700fd9f161ec0114c7 Mon Sep 17 00:00:00 2001 From: King Date: Mon, 1 Jan 2018 20:54:37 -0500 Subject: [PATCH] add 1 test to test if all snippets if they are functions --- scripts/tdd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tdd.js b/scripts/tdd.js index 754a68b68..55d5680e7 100644 --- a/scripts/tdd.js +++ b/scripts/tdd.js @@ -37,10 +37,10 @@ snippetFiles `const ${fileName} = require('./${fileName}.js');`, `test('Testing ${fileName}', (t) => {`, `//For more information on all the methods supported by tape\n//Please go to https://github.com/substack/tape`, + `t.true(typeof ${fileName} === 'function', '${fileName} is a Function');`, `//t.deepEqual(${fileName}(args..), 'Expected');`, `//t.equal(${fileName}(args..), 'Expected');`, `//t.false(${fileName}(args..), 'Expected');`, - `//t.true(${fileName}(args..), 'Expected');`, `//t.throws(${fileName}(args..), 'Expected');`, `t.end();`, `});`