Linted everything, removed semistandard
This commit is contained in:
2
test/squareSum/squareSum.js
Normal file
2
test/squareSum/squareSum.js
Normal file
@ -0,0 +1,2 @@
|
||||
const squareSum = (...args) => args.reduce((squareSum, number) => squareSum + Math.pow(number, 2), 0);
|
||||
module.exports = squareSum;
|
||||
6
test/squareSum/squareSum.test.js
Normal file
6
test/squareSum/squareSum.test.js
Normal file
@ -0,0 +1,6 @@
|
||||
const expect = require('expect');
|
||||
const squareSum = require('./squareSum.js');
|
||||
|
||||
test('squareSum is a Function', () => {
|
||||
expect(squareSum).toBeInstanceOf(Function);
|
||||
});
|
||||
Reference in New Issue
Block a user