Skip to content

Commit

Permalink
fix: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadouts authored and bucko13 committed Apr 6, 2023
1 parent 52b3c60 commit 31ab2de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/outputs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe("outputs", () => {

it("should return an error message when the output is too small", () => {
expect(validateOutputAmount(100)).toMatch(/output amount is too small/i);
expect(validateOutputAmount(800, 10000, 1000)).toMatch(
expect(validateOutputAmount(800, undefined, 1000)).toMatch(
/output amount is too small/i
);
});
Expand Down Expand Up @@ -132,6 +132,9 @@ describe("outputs", () => {
expect(validateOutputAmount(100, 100000)).toMatch(
/output amount is too small/i
);
expect(validateOutputAmount(800, 100000, 1000)).toMatch(
/output amount is too small/i
);
});

it("should return an error message for an unparseable total input amount", () => {
Expand Down

0 comments on commit 31ab2de

Please sign in to comment.