diia-open-source / be-pkg-utils

European Union Public License 1.2
14 stars 10 forks source link

Тести зламані #23

Closed kant2002 closed 4 months ago

kant2002 commented 4 months ago

я запустив тести і отримав ось цю помилку 1 тесту

 FAIL   unit  tests/unit/pdfUtils.spec.ts
  ● Test suite failed to run

    tests/unit/pdfUtils.spec.ts:16:46 - error TS2339: Property 'getVehicleLicense' does not exist on type 'DocumentsGenerator'.

    16     const validVehicleLicense = testKit.docs.getVehicleLicense()
                                                    ~~~~~~~~~~~~~~~~~
    tests/unit/pdfUtils.spec.ts:17:45 - error TS2339: Property 'getStudentCard' does not exist on type 'DocumentsGenerator'.

    17     const validStudentIdCard = testKit.docs.getStudentCard()
                                                   ~~~~~~~~~~~~~~
    tests/unit/pdfUtils.spec.ts:19:47 - error TS2339: Property 'getResidencePermit' does not exist on type 'DocumentsGenerator'.

    19     const validResidencePermit = testKit.docs.getResidencePermit({ registration: 'City\nStreet' })
                                                     ~~~~~~~~~~~~~~~~~~
    tests/unit/pdfUtils.spec.ts:21:60 - error TS2339: Property 'getRefInternallyDisplacedPerson' does not exist on type 'DocumentsGenerator'.

    21     const validRefInternallyDisplacedPerson = testKit.docs.getRefInternallyDisplacedPerson()
                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    tests/unit/pdfUtils.spec.ts:22:48 - error TS2339: Property 'getBirthCertificate' does not exist on type 'DocumentsGenerator'.

    22     const validBirthCertificate = testKit.docs.getBirthCertificate({
                                                      ~~~~~~~~~~~~~~~~~~~
    tests/unit/pdfUtils.spec.ts:27:43 - error TS2339: Property 'getPensionCard' does not exist on type 'DocumentsGenerator'.

    27     const validPensionCard = testKit.docs.getPensionCard()
                                                 ~~~~~~~~~~~~~~
    tests/unit/pdfUtils.spec.ts:1011:68 - error TS7031: Binding element 'serieNumber' implicitly has an 'any' type.

    1011                         ...validBirthCertificate.documents!.map(({ serieNumber, issueDate }) => {
                                                                            ~~~~~~~~~~~
    tests/unit/pdfUtils.spec.ts:1011:81 - error TS7031: Binding element 'issueDate' implicitly has an 'any' type.

    1011                         ...validBirthCertificate.documents!.map(({ serieNumber, issueDate }) => {
                                                                                         ~~~~~~~~~
ghost commented 4 months ago

Fixed. Thank you for informing us and bringing it to our attention.

oleksa-dev commented 4 months ago

@DiiaOpenSource please close this issue if it fixed.

alinkedd commented 4 months ago

Completed in 2.36.2 (https://github.com/diia-open-source/be-pkg-utils/commit/b8b3868b77a47a2c5a2ac168ab5e773c9d358264)