add 1 test to test if all snippets if they are functions

This commit is contained in:
King
2018-01-01 20:54:37 -05:00
parent a60ae8bfc1
commit c7304ff376

View File

@ -37,10 +37,10 @@ snippetFiles
`const ${fileName} = require('./${fileName}.js');`, `const ${fileName} = require('./${fileName}.js');`,
`test('Testing ${fileName}', (t) => {`, `test('Testing ${fileName}', (t) => {`,
`//For more information on all the methods supported by tape\n//Please go to https://github.com/substack/tape`, `//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.deepEqual(${fileName}(args..), 'Expected');`,
`//t.equal(${fileName}(args..), 'Expected');`, `//t.equal(${fileName}(args..), 'Expected');`,
`//t.false(${fileName}(args..), 'Expected');`, `//t.false(${fileName}(args..), 'Expected');`,
`//t.true(${fileName}(args..), 'Expected');`,
`//t.throws(${fileName}(args..), 'Expected');`, `//t.throws(${fileName}(args..), 'Expected');`,
`t.end();`, `t.end();`,
`});` `});`