Travis build: 613 [custom]

This commit is contained in:
30secondsofcode
2018-10-08 17:23:40 +00:00
parent 8d0f627991
commit af0d56d91b
11 changed files with 686 additions and 527 deletions

View File

@ -0,0 +1,5 @@
const heronArea = (side_a, side_b, side_c) => {
const p = (side_a + side_b + side_c) / 2
return Math.sqrt(p * (p-side_a) * (p-side_b) * (p-side_c))
};
module.exports = heronArea;

View File

@ -0,0 +1,6 @@
const expect = require('expect');
const heronArea = require('./heronArea.js');
test('heronArea is a Function', () => {
expect(heronArea).toBeInstanceOf(Function);
});