Revert "Merge branch 'jest'"

This reverts commit f76e9e108f.
This commit is contained in:
Marvin Gay
2021-05-12 21:47:42 -04:00
parent f76e9e108f
commit ad1c0c407f
45 changed files with 217 additions and 6166 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
const sumAll = function() {
};
}
module.exports = sumAll;
module.exports = sumAll
+10 -10
View File
@@ -1,22 +1,22 @@
const sumAll = require('./sumAll')
describe('sumAll', () => {
test('sums numbers within the range', () => {
describe("sumAll", function () {
it("sums numbers within the range", function () {
expect(sumAll(1, 4)).toEqual(10);
});
test.skip('works with large numbers', () => {
xit("works with large numbers", function () {
expect(sumAll(1, 4000)).toEqual(8002000);
});
test.skip('works with larger number first', () => {
xit("works with larger number first", function () {
expect(sumAll(123, 1)).toEqual(7626);
});
test.skip('returns ERROR with negative numbers', () => {
expect(sumAll(-10, 4)).toEqual('ERROR');
xit("returns ERROR with negative numbers", function () {
expect(sumAll(-10, 4)).toEqual("ERROR");
});
test.skip('returns ERROR with non-number parameters', () => {
expect(sumAll(10, "90")).toEqual('ERROR');
xit("returns ERROR with non-number parameters", function () {
expect(sumAll(10, "90")).toEqual("ERROR");
});
test.skip('returns ERROR with non-number parameters', () => {
expect(sumAll(10, [90, 1])).toEqual('ERROR');
xit("returns ERROR with non-number parameters", function () {
expect(sumAll(10, [90, 1])).toEqual("ERROR");
});
});