add test for average -> average(1, 9) equals 5
This commit is contained in:
@ -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');
|
||||
|
||||
Reference in New Issue
Block a user