-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[NoQA] Add unit tests for unreported and invoice expenses in transaction being analyzed #78484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codecov Report✅ All modified and coverable lines are covered by tests. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari
|
|
@roryabraham Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.2.88-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.2.88-7 🚀
|

Explanation of Change
Coming from #78479 (comment)
Added unit tests for the
isCategoryBeingAnalyzedfunction to cover:falsefalseThese tests ensure that the "Analyzing..." text is not displayed for expenses that don't go through auto-categorization.
Fixed Issues
$ #78445
Tests
npm test -- --testPathPattern="TransactionUtilsTest" --testNamePattern="isCategoryBeingAnalyzed"Offline tests
N/A - Unit tests only
QA Steps
[No QA] - Unit tests only
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
N/A - Unit tests only
Android: mWeb Chrome
N/A - Unit tests only
iOS: Native
N/A - Unit tests only
iOS: mWeb Safari
N/A - Unit tests only
MacOS: Chrome / Safari
N/A - Unit tests only