Merge pull request #524 from RedViperPT/issue_javascript-exercises_05_sumAll

05_sumAll: Fix tests to require correct range summation
This commit is contained in:
Josh Smith
2025-02-11 16:03:10 -07:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ const sumAll = require('./sumAll-solution');
describe('sumAll', () => {
test('sums numbers within the range', () => {
expect(sumAll(1, 4)).toEqual(10);
expect(sumAll(2, 4)).toEqual(9);
});
test('works with large numbers', () => {
expect(sumAll(1, 4000)).toEqual(8002000);
+1 -1
View File
@@ -2,7 +2,7 @@ const sumAll = require('./sumAll')
describe('sumAll', () => {
test('sums numbers within the range', () => {
expect(sumAll(1, 4)).toEqual(10);
expect(sumAll(2, 4)).toEqual(9);
});
test.skip('works with large numbers', () => {
expect(sumAll(1, 4000)).toEqual(8002000);