mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
sumAll: Unify tests between solution and non-solution spec file (#488)
This commit is contained in:
committed by
GitHub
parent
3c636bebee
commit
0c5480d00e
@@ -13,6 +13,9 @@ describe('sumAll', () => {
|
|||||||
test.skip('returns ERROR with negative numbers', () => {
|
test.skip('returns ERROR with negative numbers', () => {
|
||||||
expect(sumAll(-10, 4)).toEqual('ERROR');
|
expect(sumAll(-10, 4)).toEqual('ERROR');
|
||||||
});
|
});
|
||||||
|
test.skip('returns ERROR with non-integer parameters', () => {
|
||||||
|
expect(sumAll(2.5, 4)).toEqual('ERROR');
|
||||||
|
});
|
||||||
test.skip('returns ERROR with non-number parameters', () => {
|
test.skip('returns ERROR with non-number parameters', () => {
|
||||||
expect(sumAll(10, "90")).toEqual('ERROR');
|
expect(sumAll(10, "90")).toEqual('ERROR');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user