Tests for takeWhile, takeRightWhile, times
This commit is contained in:
@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user