add test for average -> average(1, 9) equals 5

This commit is contained in:
King
2018-01-09 06:19:22 -05:00
parent 036b4ae842
commit 3edb6b3ed5

View File

@ -4,7 +4,8 @@ const average = require('./average.js');
test('Testing average', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof average === 'function', 'average is a Function');
t.true(typeof average === 'function', 'average is a Function');
t.equal(average(9, 1), 5, 'The average of 1 & 9 is 5');
//t.deepEqual(average(args..), 'Expected');
//t.equal(average(args..), 'Expected');
//t.false(average(args..), 'Expected');