Coding style fixes and improvements

This commit is contained in:
Angelos Chalaris
2018-02-04 17:58:57 +02:00
parent a271e58e50
commit 6f3893239c
19 changed files with 30 additions and 51 deletions

View File

@ -6,7 +6,7 @@ test('Testing attempt', (t) => {
//Please go to https://github.com/substack/tape
t.true(typeof attempt === 'function', 'attempt is a Function');
t.equals(attempt(() => 0), 0, 'Returns a value');
t.true(attempt(() => {throw new Error()}) instanceof Error, 'Returns an error');
t.true(attempt(() => {throw new Error();}) instanceof Error, 'Returns an error');
//t.deepEqual(attempt(args..), 'Expected');
//t.equal(attempt(args..), 'Expected');
//t.false(attempt(args..), 'Expected');