dcmjs-org / dcmjs

Javascript implementation of DICOM manipulation
https://dcmjs.netlify.com/
MIT License
291 stars 110 forks source link

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

Closed juliencastelneau closed 1 year ago

juliencastelneau commented 1 year ago

@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