Tests for takeWhile, takeRightWhile, times

This commit is contained in:
Angelos Chalaris
2018-02-03 12:18:04 +02:00
parent e69b900c5f
commit 185fef6ec2
4 changed files with 14 additions and 6 deletions

View File

@ -5,9 +5,12 @@ test('Testing times', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof times === 'function', 'times is a Function');
var output = '';
times(5, i => (output += i));
t.equals(output, '01234', 'Runs a function the specified amount of times');
//t.deepEqual(times(args..), 'Expected');
//t.equal(times(args..), 'Expected');
//t.false(times(args..), 'Expected');
//t.throws(times(args..), 'Expected');
t.end();
});
});