Add archive snippet tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user