8000 sumAll: Unify tests between solution and non-solution spec file (#488) · rokuruby/javascript-exercises@0c5480d · GitHub
[go: up one dir, main page]

Skip to content

Commit 0c5480d

Browse files
authored
sumAll: Unify tests between solution and non-solution spec file (TheOdinProject#488)
1 parent 3c636be commit 0c5480d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

05_sumAll/sumAll.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ describe('sumAll', () => {
1313
test.skip('returns ERROR with negative numbers', () => {
1414
expect(sumAll(-10, 4)).toEqual('ERROR');
1515
});
16+
test.skip('returns ERROR with non-integer parameters', () => {
17+
expect(sumAll(2.5, 4)).toEqual('ERROR');
18+
});
1619
test.skip('returns ERROR with non-number parameters', () => {
1720
expect(sumAll(10, "90")).toEqual('ERROR');
1821
});

0 commit comments

Comments
 (0)
0