Skip to content

[$250] Fix the tests for approval flow getApprovalChain #60854

Description

@tgolen

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 OwnerCurrent 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in review

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions