14 lines
563 B
JavaScript
14 lines
563 B
JavaScript
const test = require('tape');
|
|
const chunk = require('./chunk.js');
|
|
|
|
test('Testing chunk', (t) => {
|
|
//For more information on all the methods supported by tape
|
|
//Please go to https://github.com/substack/tape
|
|
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.equal(chunk(args..), 'Expected');
|
|
//t.false(chunk(args..), 'Expected');
|
|
//t.throws(chunk(args..), 'Expected');
|
|
t.end();
|
|
}); |