Files
30-seconds-of-code/test/heronArea.test.js
2018-10-26 21:15:14 +03:00

10 lines
265 B
JavaScript

const expect = require('expect');
const {heronArea} = require('./_30s.js');
test('heronArea is a Function', () => {
expect(heronArea).toBeInstanceOf(Function);
});
test('howManyTimes returns the correct result', () => {
expect(heronArea(3, 4, 5)).toBe(6);
});