Remove squareSum

This commit is contained in:
Angelos Chalaris
2020-04-16 11:09:37 +03:00
parent 85476aba27
commit ca0de2deba
2 changed files with 0 additions and 32 deletions

View File

@ -1,16 +0,0 @@
const {squareSum} = require('./_30s.js');
test('squareSum is a Function', () => {
expect(squareSum).toBeInstanceOf(Function);
});
test('squareSum returns the proper result', () => {
expect(squareSum(2, 3, 4)).toBe(29);
});
test('works with negative numbers', () => {
expect(squareSum(-2, 3, -4)).toBe(29);
});
test('NaN when parameters have text', () => {
expect(squareSum(-2, 3, -4, 'text')).toBe(NaN);
});