Skip to content

Conversation

@RahulGoyal-tech
Copy link
Contributor

@RahulGoyal-tech RahulGoyal-tech commented Nov 18, 2024

Date: 18-11-2024

Developer Name: Rahul Goyal


Issue Ticket Number

#2223

Description

Added tests for the PR #2253

  • Added unit tests for profileDiffs.js model to test fetchProfileDiffUnobfuscated.
  • Tested it to give unobfuscated phone and mail
  • Tested it to give { profileDiffExists : false } if invalid diff id.
  • Tested it to give a valid id and { profileDiffExists : true } if given valid diff id.
  • Added test to ensure if id field is filtered out while updating diffs

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Test Coverage

Screenshot 1

image

image

image

@RahulGoyal-tech
Copy link
Contributor Author

Stacked PR Containing test for #2253

@RahulGoyal-tech RahulGoyal-tech marked this pull request as ready for review November 19, 2024 10:31
@RahulGoyal-tech RahulGoyal-tech changed the title Iss2223 tests Tests for fetchProfileDiffUnobfuscated and filtering out id in addOrUpdate Nov 19, 2024
@vikasosmium
Copy link
Contributor

this should be in one pr #2253

@RahulGoyal-tech
Copy link
Contributor Author

this should be in one pr #2253

Had a conversation in beginning with achintya. Planned at that time to make this stacked.

@vikasosmium
Copy link
Contributor

this should be in one pr #2253

Had a conversation in beginning with achintya. Planned at that time to make this stacked.

I don't think it needed stacked pr here.

@RahulGoyal-tech
Copy link
Contributor Author

RahulGoyal-tech commented Dec 18, 2024

this should be in one pr #2253

Had a conversation in beginning with achintya. Planned at that time to make this stacked.

I don't think it needed stacked pr here.

Yeah it could be encapsulated in one pr itself as well. Please review and approve this. Will try to keep single pr for simpler ones from next time.

@yesyash yesyash merged commit 2ac202e into RealDevSquad:develop Dec 20, 2024
3 checks passed
pankajjs pushed a commit to pankajjs/website-backend that referenced this pull request Dec 21, 2024
…pdate (RealDevSquad#2256)

* Added test for id filterin in addOrUpdate

* Added Tests for Unobfuscated details and filtered id

* Updated test to match fixture instead of Regex

* Added test for id filterin in addOrUpdate

* Added Tests for Unobfuscated details and filtered id

* Updated test to match fixture instead of Regex

* Removed comments

* Test Cases Added

* Added nested profileDiff

---------

Co-authored-by: Prakash Choudhary <[email protected]>
Co-authored-by: Achintya Chatterjee <[email protected]>
@Achintya-Chatterjee Achintya-Chatterjee mentioned this pull request Dec 24, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants