refactor(ccdaservice): test and refactor count entities function (#6805)
commit16705aeb5adcac2ed7c260a28f3355ac08f089e0
authorraskolnikov-rodion <22417165+raskolnikov-rodion@users.noreply.github.com>
Thu, 31 Aug 2023 05:37:30 +0000 (31 06:37 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Aug 2023 05:37:30 +0000 (30 22:37 -0700)
treec968e44ddcfca7be5b84ef4166cc45493513391d
parent4f52c1c25b3f249d83f7f877ec2c24f1b2d0f3eb
refactor(ccdaservice): test and refactor count entities function (#6805)

* refactor(ccdaservice): test and refactor single entity function

* refactor(ccdaservice): use extracted single entity function

* refactor(ccdaservice): rename function countEntities
ccdaservice/serveccda.js
ccdaservice/utils/count-entities/count-entities.js [new file with mode: 0644]
ccdaservice/utils/count-entities/count-entities.spec.js [new file with mode: 0644]