Skip to content
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

test: removing unnecessary optionals and increasing branch cov - 4 #2506

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

suyashpatil78
Copy link
Contributor

@suyashpatil78 suyashpatil78 commented Oct 11, 2023

Description

🤖 Generated by Copilot at d54a87a

This pull request improves the testing and code quality of the MergeExpensesService class, which handles the logic for merging expenses in the app. It adds and updates test cases for different methods and scenarios in src/app/core/services/merge-expenses.service.spec.ts. It also removes unnecessary optional chaining operators from various properties in src/app/core/services/merge-expenses.service.ts.

🤖 Generated by Copilot at d54a87a

MergeExpensesService
Tests and code refined - no more
Optional chaining

Walkthrough

🤖 Generated by Copilot at d54a87a

  • Remove unnecessary optional chaining operators from various properties in merge-expenses.service.ts (link, link, link, link, link)
  • Add new test cases for getCategoryName(), formatProjectOptions(), getCorporateCardTransactions(), getFieldValue(), getFieldValueOnChange(), formatTaxGroupOption(), and formatCategoryOption() methods in merge-expenses.service.spec.ts (link, link, link, link, link, link, link)
  • Import mock data for expectedOrgCategoryByName2 from org-category.data file in merge-expenses.service.spec.ts (link)
  • Fix typo in test suite description for getCorporateCardTransactions() method in merge-expenses.service.spec.ts (link)

Clickup

app.clickup.com

Code Coverage

Please add code coverage here

UI Preview

Please add screenshots for UI changes

@github-actions github-actions bot added the size/M Medium PR label Oct 11, 2023
@github-actions
Copy link

Unit Test Coverage % values
Statements 95.35% ( 17167 / 18004 )
Branches 93.4% ( 8669 / 9281 )
Functions 93.52% ( 5298 / 5665 )
Lines 95.49% ( 16348 / 17119 )

@suyashpatil78 suyashpatil78 merged commit ce0176c into rem-branches-test-3 Oct 16, 2023
4 checks passed
suyashpatil78 added a commit that referenced this pull request Oct 16, 2023
…2505)

* test: removing unnecessary optionals and increasing branch cov - 3

* minor

* minor

* test: removing unnecessary optionals and increasing branch cov - 4 (#2506)

* test: removing unnecessary optionals and increasing branch cov - 4

* minor
suyashpatil78 added a commit that referenced this pull request Oct 16, 2023
…2504)

* test: removing unnecessary optionals and increasing branch cov - 2

* pr comments

* test: removing unnecessary optionals and increasing branch cov - 3 (#2505)

* test: removing unnecessary optionals and increasing branch cov - 3

* minor

* minor

* test: removing unnecessary optionals and increasing branch cov - 4 (#2506)

* test: removing unnecessary optionals and increasing branch cov - 4

* minor
suyashpatil78 added a commit that referenced this pull request Oct 16, 2023
…2503)

* test: removing unnecessary optionals and increasing branch cov - 1

* pr comments

* test: removing unnecessary optionals and increasing branch cov - 2 (#2504)

* test: removing unnecessary optionals and increasing branch cov - 2

* pr comments

* test: removing unnecessary optionals and increasing branch cov - 3 (#2505)

* test: removing unnecessary optionals and increasing branch cov - 3

* minor

* minor

* test: removing unnecessary optionals and increasing branch cov - 4 (#2506)

* test: removing unnecessary optionals and increasing branch cov - 4

* minor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M Medium PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants