Files
30-seconds-of-code/test/initializeArrayWithValues/initializeArrayWithValues.test.js
2018-01-10 16:10:55 +01:00

14 lines
748 B
JavaScript

const test = require('tape');
const initializeArrayWithValues = require('./initializeArrayWithValues.js');
test('Testing initializeArrayWithValues', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof initializeArrayWithValues === 'function', 'initializeArrayWithValues is a Function');
t.deepEqual(initializeArrayWithValues(5, 2), [2, 2, 2, 2, 2], "Initializes and fills an array with the specified values");
//t.deepEqual(initializeArrayWithValues(args..), 'Expected');
//t.equal(initializeArrayWithValues(args..), 'Expected');
//t.false(initializeArrayWithValues(args..), 'Expected');
//t.throws(initializeArrayWithValues(args..), 'Expected');
t.end();
});