Files
30-seconds-of-code/test/distinctValuesOfArray/distinctValuesOfArray.test.js
2018-01-10 17:33:29 +01:00

14 lines
708 B
JavaScript

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