Updated testing with proper indentation
Uses two spaces instead of hard tabs.
This commit is contained in:
@ -68,13 +68,13 @@ snippetFiles
|
||||
`const test = require('tape');`,
|
||||
`const ${fileName} = require('./${fileName}.js');`,
|
||||
`\ntest('Testing ${fileName}', (t) => {`,
|
||||
`\t//For more information on all the methods supported by tape\n\t//Please go to https://github.com/substack/tape`,
|
||||
`\tt.true(typeof ${fileName} === 'function', '${fileName} is a Function');`,
|
||||
`\t//t.deepEqual(${fileName}(args..), 'Expected');`,
|
||||
`\t//t.equal(${fileName}(args..), 'Expected');`,
|
||||
`\t//t.false(${fileName}(args..), 'Expected');`,
|
||||
`\t//t.throws(${fileName}(args..), 'Expected');`,
|
||||
`\tt.end();`,
|
||||
` //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.throws(${fileName}(args..), 'Expected');`,
|
||||
` t.end();`,
|
||||
`});`
|
||||
].join('\n');
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
Test log for: Wed Jan 24 2018 17:48:46 GMT+0200 (GTB Standard Time)
|
||||
Test log for: Wed Jan 24 2018 17:52:14 GMT+0200 (GTB Standard Time)
|
||||
|
||||
> 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
|
||||
> tape test/**/*.test.js | tap-spec
|
||||
@ -1476,6 +1476,6 @@ Test log for: Wed Jan 24 2018 17:48:46 GMT+0200 (GTB Standard Time)
|
||||
|
||||
total: 638
|
||||
passing: 638
|
||||
duration: 418ms
|
||||
duration: 417ms
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user