add 2 tests, capitalizeEveryWord & chunk
This commit is contained in:
@ -5,6 +5,7 @@ test('Testing capitalizeEveryWord', (t) => {
|
|||||||
//For more information on all the methods supported by tape
|
//For more information on all the methods supported by tape
|
||||||
//Please go to https://github.com/substack/tape
|
//Please go to https://github.com/substack/tape
|
||||||
t.true(typeof capitalizeEveryWord === 'function', 'capitalizeEveryWord is a Function');
|
t.true(typeof capitalizeEveryWord === 'function', 'capitalizeEveryWord is a Function');
|
||||||
|
t.equal(capitalizeEveryWord('hello world!'), 'Hello World!', "Capitalizes the first letter of every word in a string");
|
||||||
//t.deepEqual(capitalizeEveryWord(args..), 'Expected');
|
//t.deepEqual(capitalizeEveryWord(args..), 'Expected');
|
||||||
//t.equal(capitalizeEveryWord(args..), 'Expected');
|
//t.equal(capitalizeEveryWord(args..), 'Expected');
|
||||||
//t.false(capitalizeEveryWord(args..), 'Expected');
|
//t.false(capitalizeEveryWord(args..), 'Expected');
|
||||||
|
|||||||
@ -5,6 +5,7 @@ test('Testing chunk', (t) => {
|
|||||||
//For more information on all the methods supported by tape
|
//For more information on all the methods supported by tape
|
||||||
//Please go to https://github.com/substack/tape
|
//Please go to https://github.com/substack/tape
|
||||||
t.true(typeof chunk === 'function', 'chunk is a Function');
|
t.true(typeof chunk === 'function', 'chunk is a Function');
|
||||||
|
t.deepEqual(chunk([1, 2, 3, 4, 5], 2), [[1,2],[3,4],[5]], "Chunks an array into smaller arrays of a specified size");
|
||||||
//t.deepEqual(chunk(args..), 'Expected');
|
//t.deepEqual(chunk(args..), 'Expected');
|
||||||
//t.equal(chunk(args..), 'Expected');
|
//t.equal(chunk(args..), 'Expected');
|
||||||
//t.false(chunk(args..), 'Expected');
|
//t.false(chunk(args..), 'Expected');
|
||||||
|
|||||||
Reference in New Issue
Block a user