From 31ab2de309360fa5824b1cddeba8e2910838767b Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 6 Apr 2023 15:13:00 -0800 Subject: [PATCH] fix: add test --- src/outputs.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/outputs.test.js b/src/outputs.test.js index 5b6bea0..480fe17 100644 --- a/src/outputs.test.js +++ b/src/outputs.test.js @@ -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 ); }); @@ -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", () => {