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,10 @@ test('Testing takeWhile', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof takeWhile === 'function', 'takeWhile is a Function');
t.deepEqual(takeWhile([1, 2, 3, 4], n => n >= 3), [1, 2], 'Removes elements until the function returns true');
//t.deepEqual(takeWhile(args..), 'Expected');
//t.equal(takeWhile(args..), 'Expected');
//t.false(takeWhile(args..), 'Expected');
//t.throws(takeWhile(args..), 'Expected');
t.end();
});
});