Discussed in Slack here (open-source channel)
Problem
The unit test for describe('has transaction match with approver rule' is only passing on main due to async code not running. When a return is added to the final Onyx.merge( to ensure the assertions run asynchronously, the test then fails the assertion.
I believe the test to be broken
Solution
Make the test async and fix the assertion and code associated with it to have a correctly passing test.
cc @nkdengineer I believe you wrote the test, so I would ask you to fix this one.
Issue Owner
Current Issue Owner: @dominictb
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021930002373340928864
- Upwork Job ID: 1930002373340928864
- Last Price Increase: 2025-06-03
Discussed in Slack here (open-source channel)
Problem
The unit test for
describe('has transaction match with approver rule'is only passing onmaindue to async code not running. When areturnis added to the finalOnyx.merge(to ensure the assertions run asynchronously, the test then fails the assertion.I believe the test to be broken
Solution
Make the test async and fix the assertion and code associated with it to have a correctly passing test.
cc @nkdengineer I believe you wrote the test, so I would ask you to fix this one.
Issue Owner
Current Issue Owner: @dominictbUpwork Automation - Do Not Edit