From 11fc844251634140fa9c78dff7155e31a4a0e34e Mon Sep 17 00:00:00 2001 From: Mahesh Vagicherla Date: Mon, 23 Oct 2023 18:56:29 +0530 Subject: [PATCH] fix tests failing --- tests/unit/ReportUtilsTest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/ReportUtilsTest.js b/tests/unit/ReportUtilsTest.js index d164036d4caf..25f093cbd711 100644 --- a/tests/unit/ReportUtilsTest.js +++ b/tests/unit/ReportUtilsTest.js @@ -280,14 +280,14 @@ describe('ReportUtils', () => { }; expect(ReportUtils.isWaitingForIOUActionFromCurrentUser(report)).toBe(true); }); - it('returns true when the report has outstanding IOU and is waiting for a bank account and the logged user is the report owner', () => { + it('returns false when the report has outstanding IOU and is not waiting for a bank account and the logged user is the report owner', () => { const report = { ...LHNTestUtils.getFakeReport(), hasOutstandingIOU: true, ownerAccountID: currentUserAccountID, - isWaitingOnBankAccount: true, + isWaitingOnBankAccount: false, }; - expect(ReportUtils.isWaitingForIOUActionFromCurrentUser(report)).toBe(true); + expect(ReportUtils.isWaitingForIOUActionFromCurrentUser(report)).toBe(false); }); it('returns false when the report has no oustanding IOU but is waiting for a bank account and the logged user is not the report owner', () => { const report = {