Skip to content

Commit

Permalink
Remove test for single number
Browse files Browse the repository at this point in the history
  • Loading branch information
bwreid committed Jul 2, 2021
1 parent 5808b09 commit 634e2fa
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,6 @@ describe("calculator()", () => {
const expected = -20;
expect(actual).toEqual(expected);
});

test("should return the first number if there is only one number", () => {
const command = "plus";
const numbers = ["5"];
process.argv.push(command, ...numbers);

const actual = calculator();
const expected = 5;
expect(actual).toEqual(expected);
});
});

describe("minus", () => {
Expand Down Expand Up @@ -106,15 +96,5 @@ describe("calculator()", () => {
const expected = 30;
expect(actual).toEqual(expected);
});

test("should return the first number if there is only one number", () => {
const command = "minus";
const numbers = ["5"];
process.argv.push(command, ...numbers);

const actual = calculator();
const expected = 5;
expect(actual).toEqual(expected);
});
});
});

0 comments on commit 634e2fa

Please sign in to comment.