Add archive snippet tests

This commit is contained in:
Angelos Chalaris
2018-10-26 21:15:14 +03:00
parent 1cc4f5bdd5
commit 5982db073b
4 changed files with 21 additions and 0 deletions

View File

@@ -4,3 +4,6 @@ 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);
});