Skip to content

[FIX & TESTS] cleanTags : check if param is undefined. Add 3 test - #308

Merged
pieper merged 1 commit into
dcmjs-org:masterfrom
juliencastelneau:anonymizer_pass_tests
Sep 14, 2022
Merged

pieper merged 1 commit into
dcmjs-org:masterfrom
juliencastelneau:anonymizer_pass_tests

Conversation

@juliencastelneau

@juliencastelneau juliencastelneau commented Sep 14, 2022 •

Copy link
Copy Markdown
Contributor

@pieper, this PR fixes a test failure due to PR #303

  1. Check if a param is passed in function cleanTags. If not, create it and fill with default value.
    It maintains backwards compatibility for the API.

  2. Add 3 tests demonstrating the ways to use the method

  • force value for a specific tag. Usefull for pseudo-anonymization
  • force a tag to be kept => Remove it in the default array tagNamesToEmpty
  • force a tag to be removed => Add it in the default array tagNamesToEmpty

@pieper pieper left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

@pieper
pieper merged commit 77e6362 into dcmjs-org:master Sep 14, 2022
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.

2 participants