pwndoc / pwndoc

Pentest Report Generator
https://pwndoc.github.io/pwndoc
MIT License
2.22k stars 417 forks source link

Failed install #341

Closed whereiscodedude closed 1 year ago

whereiscodedude commented 2 years ago

Hello brother,

I am getting an error about installation. I tried it in Kali, ubuntu versions 18-22, but I leave the same error details, thanks.

hata

intermediate container 38507d724d62  ---> dc42e8cc1225 Step 6/11 : RUN npm install  ---> Running in 77784524be14 npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0                                                                                                                                                    added 1161 packages, and audited 1596 packages in 52s  1 package is looking for funding   run `npm fund` for details  44 vulnerabilities (2 low, 24 moderate, 13 high, 5 critical)  To address issues that do not require attention, run:   npm audit fix  To address all issues possible (including breaking changes), run:   npm audit fix --force  Some issues need review, and may require choosing a different dependency.  Run `npm audit` for details. npm notice  npm notice New minor version of npm available! 8.11.0 -> 8.15.1               npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.1>       npm notice Run `npm install -g npm@8.15.1` to update!                         npm notice                                                                    Removing intermediate container 77784524be14                                   ---> 06b9c1a30287 Step 7/11 : COPY . .  ---> 93034a7cb69d Step 8/11 : EXPOSE 4242  ---> Running in 78d025247728 Removing intermediate container 78d025247728  ---> 5397dc3e4524 Step 9/11 : ENV NODE_ENV prod  ---> Running in 2d129080a1b3 Removing intermediate container 2d129080a1b3  ---> f3130a4ef5de Step 10/11 : ENV NODE_ICU_DATA=node_modules/full-icu  ---> Running in 61b9cdb8ad04 Removing intermediate container 61b9cdb8ad04  ---> 87356dba26b1 Step 11/11 : ENTRYPOINT ["npm", "start"]  ---> Running in 5f7232a20b22 Removing intermediate container 5f7232a20b22  ---> f4a9a569a892 Successfully built f4a9a569a892 Successfully tagged yeln4ts/pwndoc:backend Building pwndoc-frontend Sending build context to Docker daemon  2.333MB Step 1/13 : FROM node:lts-alpine AS build  ---> b0cbdedc1b9d Step 2/13 : WORKDIR /app  ---> Running in 58f54c73eb17 Removing intermediate container 58f54c73eb17  ---> 28a02cb9ec69 Step 3/13 : COPY package.json ./  ---> 5345747f9358 Step 4/13 : RUN npm install  ---> Running in 261431083d71 npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.                      npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility                                   npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated                                                                    npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated                                                          npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated                                                                       npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated                                                  npm WARN deprecated har-validator@5.1.5: this library is no longer supported  npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.             npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142                                        npm WARN deprecated @types/anymatch@3.0.0: This is a stub types definition. anymatch provides its own type definitions, so you do not need this installed. npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies             npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.                                                               npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies             npm WARN deprecated axios@0.18.1: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410     npm WARN deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest                                                                                                                                            added 1756 packages, and audited 1757 packages in 2m  145 packages are looking for funding   run `npm fund` for details  34 vulnerabilities (18 moderate, 16 high)  To address issues that do not require attention, run:   npm audit fix  To address all issues possible (including breaking changes), run:   npm audit fix --force  Some issues need review, and may require choosing a different dependency.  Run `npm audit` for details. npm notice  npm notice New minor version of npm available! 8.11.0 -> 8.15.1               npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.1>       npm notice Run `npm install -g npm@8.15.1` to update!                         npm notice             Tip: You can use "$ quasar serve" command to create a web server,       both for testing or production. Type "$ quasar serve -h" for       parameters. Also, an npm script (usually named "start") can       be added for deployment environments.       If you're using Vue Router "history" mode, don't forget to       specify the "--history" parameter: "$ quasar serve --history"  Removing intermediate container bd2b4525dcc7  ---> b23fb162836e Step 7/13 : FROM nginx:stable-alpine  ---> ccb911fdd2ca Step 8/13 : COPY .docker/nginx.conf /etc/nginx/conf.d/default.conf  ---> 6deebc862500 Step 9/13 : RUN mkdir -p /etc/nginx/ssl  ---> Running in 44159d5aeaf0 Removing intermediate container 44159d5aeaf0  ---> 0cae628dfa85 Step 10/13 : COPY ssl/server* /etc/nginx/ssl/  ---> fac369cf0233 Step 11/13 : COPY --from=build /app/dist/spa /usr/share/nginx/html  ---> 4eec826c029e Step 12/13 : EXPOSE 80  ---> Running in 60eb08cffa15 Removing intermediate container 60eb08cffa15  ---> a186b57d6cb0 Step 13/13 : CMD ["nginx", "-g", "daemon off;"]  ---> Running in ab360fc46d15 Removing intermediate container ab360fc46d15  ---> cc889476f4c5 Successfully built cc889476f4c5 Successfully tagged yeln4ts/pwndoc:frontend Creating network "pwndoc-master_backend" with driver "bridge" Creating mongo-pwndoc    ... done Creating pwndoc-frontend ... done Creating pwndoc-backend  ... done Building backend-test Sending build context to Docker daemon  1.527MB Step 1/9 : FROM node:lts-alpine  ---> b0cbdedc1b9d Step 2/9 : RUN mkdir -p /app  ---> Using cache  ---> b7307f95a803 Step 3/9 : WORKDIR /app  ---> Using cache  ---> 6393ccbe403a Step 4/9 : COPY package*.json ./  ---> Using cache  ---> 56c42c209ab6 Step 5/9 : RUN apk --no-cache add --virtual builds-deps build-base python3 git  ---> Using cache  ---> dc42e8cc1225 Step 6/9 : ENV NODE_ENV test  ---> Running in f43f1c4693ab Removing intermediate container f43f1c4693ab  ---> 50cd2b761218 Step 7/9 : ENV NODE_ICU_DATA=node_modules/full-icu  ---> Running in 7cbc52e94b2a Removing intermediate container 7cbc52e94b2a  ---> 4121694d0130 Step 8/9 : RUN npm install  ---> Running in d307f74b3371 npm WARN deprecated xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0                                                                                                                                                    added 1161 packages, and audited 1596 packages in 49s  1 package is looking for funding   run `npm fund` for details  44 vulnerabilities (2 low, 24 moderate, 13 high, 5 critical)  To address issues that do not require attention, run:   npm audit fix  To address all issues possible (including breaking changes), run:   npm audit fix --force  Some issues need review, and may require choosing a different dependency.  Run `npm audit` for details. npm notice  npm notice New minor version of npm available! 8.11.0 -> 8.15.1               npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.15.1>       npm notice Run `npm install -g npm@8.15.1` to update!                         npm notice                                                                    Removing intermediate container d307f74b3371                                   ---> 65c466b8d17c Step 9/9 : ENTRYPOINT ["npm", "run", "test"]  ---> Running in 866e869da0f4 Removing intermediate container 866e869da0f4  ---> d44de99b2bb8 Successfully built d44de99b2bb8 Successfully tagged yeln4ts/pwndoc:backend-test Creating backend_backend-test_run ... done  > pwndoc-backend@0.0.1 test > NODE_ENV=test jest tests/index.test.js   FAIL  tests/index.test.js (6.3 s)   Unhauthenticated Suite Tests     Testing Unauthenticated User routes       ✕ should return 401 Unauthorized (198 ms)       ✓ should return 200 Ok (19 ms)     Testing Unauthenticated Data routes       ✕ should return 401 Unauthorized (84 ms)     Testing Unauthenticated Company routes       ✓ should return 401 Unauthorized (26 ms)     Testing Unauthenticated Client routes       ✓ should return 401 Unauthorized (26 ms)     Testing Unauthenticated Template routes       ✓ should return 401 Unauthorized (28 ms)     Testing Unauthenticated Vulnerability routes       ✓ should return 401 Unauthorized (57 ms)     Testing Unauthenticated Audit routes       ✕ should return 401 Unauthorized (57 ms)   Users Suite Tests     User Initialization       ✓ Get the users init state (9 ms)       ✓ Authenticate with nonexistent user (17 ms)       ✓ Create first user (240 ms)       ✓ Create first user when it already exists (12 ms)       ✕ Authenticate with first user (130 ms)     User CRUD operations       ✓ Get the users init state (10 ms)       ✓ Authenticate with admin user (118 ms)       ✕ Check token validity (7 ms)       ✕ Get my profile (7 ms)       ✕ Create user with role user (18 ms)       ✕ Create user with role user without role parameter (7 ms)       ✕ Create user with role report (7 ms)       ✕ Create user with role reviewer (7 ms)       ✕ Get user profile (6 ms)       ✕ Update my profile (8 ms)       ✕ Update user profile (13 ms)       ✕ Delete user (24 ms)   Data Suite Tests     Language CRUD operations       ✕ Get languages (8 ms)       ✕ Create 3 languages (7 ms)       ✕ Should not create with existing locale (7 ms)       ✕ Should not create with existing name (6 ms)       ✕ Get languages (6 ms)       ✕ Delete language (6 ms)       ✕ Should not delete language with nonexistent locale (9 ms)     Audit types CRUD operations       ✕ Get audit types (7 ms)       ✕ Create audit type Internal (7 ms)       ✕ Create audit type Web (7 ms)       ✕ Should not create with existing name (6 ms)       ✕ Get audit types (6 ms)       ✕ Delete audit type (6 ms)       ✕ Should not delete audit type with nonexistent name (7 ms)     Vulnerability types CRUD operations       ✕ Get vulnerability types (7 ms)       ✕ Create vulnerability type Internal (7 ms)       ✕ Create vulnerability type Web (7 ms)       ✕ Should not create with existing name (6 ms)       ✕ Get vulnerability types (9 ms)       ✕ Delete vulnerability type (6 ms)       ✕ Should not delete vulnerability type with nonexistent name (6 ms)     Sections CRUD operations       ✕ Get sections (7 ms)       ✕ Create section Attack Scenario locale en (6 ms)       ✕ Create section But locale fr (7 ms)       ✕ Should not create section with existing (name,locale) (7 ms)       ✕ Should not create section with existing (field,locale) (6 ms)       ✕ Create section with existing name from a different locale (8 ms)       ✕ Create section with nonexistent name (6 ms)       ✕ Get sections (9 ms)       ✕ Should not delete nonexistent section (8 ms)       ✕ Delete section (6 ms)   Template Suite Tests     Template CRUD operations       ✕ Get templates (no existing templates in db) (7 ms)       ✕ Create 2 templates (7 ms)       ✕ Should not create template with name without file (6 ms)       ✕ Should not create template with existing name (8 ms)       ✕ Should not create template with wrong name format (6 ms)       ✕ Get templates (existing templates in db) (6 ms)       ✕ Update template with name only (9 ms)       ✕ Update template with nonexistent ID (9 ms)       ✕ Delete template (8 ms)       ✕ Delete template with nonexistent ID (7 ms)   Company Suite Tests     Company CRUD operations       ✕ Get companies (no existing companies in db) (7 ms)       ✕ Create company with name only (6 ms)       ✕ Create company with name and logo (9 ms)       ✕ Should not create company with existing name (6 ms)       ✕ Get companies (existing companies in db) (6 ms)       ✕ Update company with logo only (7 ms)       ✕ Update company with nonexistent id (7 ms)       ✕ Delete company (8 ms)       ✕ Delete company with nonexistent id (6 ms)   Client Suite Tests     Client CRUD operations       ✕ Get clients (no existing clients in db) (6 ms)       ✕ Create client with email only (6 ms)       ✕ Create client with all information and existing company (6 ms)       ✕ Create client with nonexistent company (6 ms)       ✕ Should not create client with existing email (8 ms)       ✕ Should not create client without email (6 ms)       ✕ Get clients (existing clients in db) (6 ms)       ✕ Update client (6 ms)       ✕ Update client with nonexistent id (13 ms)       ✕ Delete client (7 ms)       ✕ Delete client with nonexistent email (6 ms)   Vulnerability Suite Tests     Vulnerability CRUD operations       ✕ Get vulnerabilities (no existing vulnerabilities in db) (6 ms)       ✕ Get vulnerabilities for export (no existing vulnerabilities in db) (6 ms)       ✕ Create 4 vulnerabilities (9 ms)       ✕ Should not create vulnerability with with existing title (6 ms)       ✕ Should not create vulnerability without title (7 ms)       ✕ Should not create vulnerability without locale (6 ms)       ✕ Get vulnerabilities (existing vulnerabilities in db) (9 ms)       ✕ Get vulnerabilities for export (existing vulnerabilities in db) (8 ms)       ✕ Update vulnerability (12 ms)       ✕ Should not update vulnerability with nonexistent ID (7 ms)       ✕ Get vulnerabilities by language (7 ms)       ✕ Merge 2 vulnerabilities (12 ms)       ✕ Delete vulnerability (11 ms)       ✕ Delete vulnerability with nonexistent ID (6 ms)       ✕ Create vulnerability from finding (6 ms)       ✕ Update vulnerability from finding (6 ms)       ✕ Should not create/update vulnerability from finding without title (6 ms)       ✕ Should not update vulnerability from finding that is not yet approved (7 ms)       ✕ Get vulnerability updates (12 ms)   Application configs     ✕ Get configs (7 ms)     ✕ Edit configs (9 ms)   Lib functions Suite Tests     html2ooxml tests       ✓ Simple Paragraph (26 ms)       ✓ Text without tag (4 ms)       ✓ Bold without wrapping paragraph (3 ms)       ✕ Bold (8 ms)       ✕ Italic (4 ms)       ✓ Underline (3 ms)       ✕ Strike (4 ms)       ✕ Bold and Italics (4 ms)       ✕ All marks (7 ms)       ✓ Heading 1 (3 ms)       ✓ Heading 2 (3 ms)       ✓ Heading 3 (3 ms)       ✓ Heading 4 (2 ms)       ✓ Heading 5 (2 ms)       ✓ Heading 6 (1 ms)       ✓ Simple Bullets (2 ms)       ✓ Simple Bullets without ul tag (2 ms)       ✓ Nested Bullets (3 ms)       ✓ Simple Numbering (2 ms)       ✓ Nested Numbering (3 ms)       ✓ Break (2 ms)       ✓ Break with newline (2 ms)       ✓ Code (2 ms)       ✓ CodeBlock (2 ms)    ● Unhauthenticated Suite Tests › Testing Unauthenticated User routes › should return 401 Unauthorized      expect(received).toBe(expected) // Object.is equality      Expected: 401     Received: 404        26 |        27 |         response = await request.delete('/api/users/test')     > 28 |         expect(response.status).toBe(401)          |                                 ^       29 |        30 |         done()       31 |       })        at Object.<anonymous> (tests/unauthenticated.test.js:28:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Unhauthenticated Suite Tests › Testing Unauthenticated Data routes › should return 401 Unauthorized                                                         expect(received).toBe(expected) // Object.is equality      Expected: 401     Received: 404        72 |        73 |         response = await request.get('/api/data/sections/en')     > 74 |         expect(response.status).toBe(401)          |                                 ^       75 |        76 |         response = await request.post('/api/data/sections')       77 |         expect(response.status).toBe(401)        at Object.<anonymous> (tests/unauthenticated.test.js:74:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Unhauthenticated Suite Tests › Testing Unauthenticated Audit routes › should return 401 Unauthorized                                                        expect(received).toBe(expected) // Object.is equality      Expected: 401     Received: 404        204 |        205 |         response = await request.get('/api/audits/1234/findings')     > 206 |         expect(response.status).toBe(401)           |                                 ^       207 |        208 |         response = await request.get('/api/audits/1234/findings/1234')                                                                               209 |         expect(response.status).toBe(401)        at Object.<anonymous> (tests/unauthenticated.test.js:206:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User Initialization › Authenticate with first user      expect(received).toContain(expected) // indexOf      Expected substring: "JWT"     Received string:    "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyZTdiOWQ5MTUzYjYxMDAxMTdhYzZhNSIsInVzZXJuYW1lIjoiYWRtaW4iLCJyb2xlIjoiYWRtaW4iLCJmaXJzdG5hbWUiOiJBZG1pbiIsImxhc3RuYW1lIjoiSXN0cmF0b3IiLCJyb2xlcyI6IioiLCJpYXQiOjE2NTkzNTM1NjIsImV4cCI6MTY1OTM1NDQ2Mn0.abyvw_umC0cLzaeIzmRbKzyXokuUWLO3vGLBNA0OZuM"                                                                               61 |         expect(response.status).toBe(200)       62 |         expect(response.data.datas.token).toBeDefined()     > 63 |         expect(response.data.datas.token).toContain('JWT')          |                                           ^       64 |         done()       65 |       })       66 |         at Object.<anonymous> (tests/user.test.js:63:43)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Check token validity      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        93 |         var response = await request.get('/api/users/checktoken', options)       94 |            > 95 |         expect(response.status).toBe(200)          |                                 ^       96 |         done()       97 |       })       98 |         at Object.<anonymous> (tests/user.test.js:95:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Get my profile      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        106 |         var response = await request.get('/api/users/me', options)       107 |            > 108 |         expect(response.status).toBe(200)           |                                 ^       109 |         expect(response.data.datas).toEqual(expect.objectContaining(expected))       110 |         done()       111 |       })        at Object.<anonymous> (tests/user.test.js:108:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Create user with role user      expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        120 |         }       121 |         var response = await request.post('/api/users', user, options)     > 122 |         expect(response.status).toBe(201)           |                                 ^       123 |        124 |         response = await request.post('/api/users/token', user)       125 |         expect(response.status).toBe(200)        at Object.<anonymous> (tests/user.test.js:122:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Create user with role user without role parameter                                                                expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        135 |         }       136 |         var response = await request.post('/api/users', user, options)     > 137 |         expect(response.status).toBe(201)           |                                 ^       138 |        139 |         response = await request.post('/api/users/token', user)       140 |         expect(response.status).toBe(200)        at Object.<anonymous> (tests/user.test.js:137:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Create user with role report      expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        151 |         }       152 |         var response = await request.post('/api/users', user, options)     > 153 |         expect(response.status).toBe(201)           |                                 ^       154 |        155 |         response = await request.post('/api/users/token', user)       156 |         expect(response.status).toBe(200)        at Object.<anonymous> (tests/user.test.js:153:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Create user with role reviewer      expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        167 |         }       168 |         var response = await request.post('/api/users', user, options)     > 169 |         expect(response.status).toBe(201)           |                                 ^       170 |        171 |         response = await request.post('/api/users/token', user)       172 |         expect(response.status).toBe(200)        at Object.<anonymous> (tests/user.test.js:169:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Get user profile      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        183 |         var response = await request.get('/api/users/user', options)       184 |            > 185 |         expect(response.status).toBe(200)           |                                 ^       186 |         expect(response.data.datas).toEqual(expect.objectContaining(expected))       187 |         done()       188 |       })        at Object.<anonymous> (tests/user.test.js:185:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Update my profile      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        203 |         }       204 |         var response = await request.put('/api/users/me', user, options)     > 205 |         expect(response.status).toBe(200)           |                                 ^       206 |        207 |         var response = await request.get('/api/users/me', options)       208 |         expect(response.data.datas).toEqual(expect.objectContaining(expected))        at Object.<anonymous> (tests/user.test.js:205:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Update user profile      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        228 |        229 |         var response = await request.put(`/api/users/${userId}`, user, options)     > 230 |         expect(response.status).toBe(200)           |                                 ^       231 |        232 |         var response = await request.get('/api/users/user2', options)       233 |         expect(response.data.datas).toEqual(expect.objectContaining(expected))        at Object.<anonymous> (tests/user.test.js:230:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Users Suite Tests › User CRUD operations › Delete user      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 404        243 |        244 |         var response = await request.delete(`/api/users/${userId}`, options)                                                                       > 245 |         expect(response.status).toBe(200)           |                                 ^       246 |        247 |         var response = await request.get('/api/users/tmpuser', options)       248 |         expect(response.status).toBe(404)        at Object.<anonymous> (tests/user.test.js:245:33)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Data Suite Tests › Language CRUD operations › Get languages      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        27 |         us> (tests/company.test.js:60:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Company Suite Tests › Company CRUD operations › Update company with logo only                                                                               expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 404        66 |         var company = {logo: logo}       67 |         var response = await request.put(`/api/companies/${company1Id}`, company, options)                                                          > 68 |         expect(response.status).toBe(200)          |                                 ^       69 |         done()       70 |       })       71 |         at Object.<anonymous> (tests/company.test.js:68:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Company Suite Tests › Company CRUD operations › Update company with nonexistent id                                                                          expect(received).toBe(expected) // Object.is equality      Expected: 404     Received: 401        74 |        75 |         var response = await request.put(`/api/companies/deadbeefdeadbeefdeadbeef`, company, options)                                               > 76 |         expect(response.status).toBe(404)          |                                 ^       77 |         done()       78 |       })       79 |         at Object.<anonymous> (tests/company.test.js:76:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Company Suite Tests › Company CRUD operations › Delete company      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 404        80 |       it('Delete company', async done => {       81 |         var response = await request.delete(`/api/companies/${company2Id}`, options)                                                                > 82 |         expect(response.status).toBe(200)          |                                 ^       83 |        84 |         response = await request.get('/api/companies', options)       85 |         expect(response.data.datas).toHaveLength(1)        at Object.<anonymous> (tests/company.test.js:82:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Company Suite Tests › Company CRUD operations › Delete company with nonexistent id                                                                          expect(received).toBe(expected) // Object.is equality      Expected: 404     Received: 401        89 |       it('Delete company with nonexistent id', async done => {       90 |         var response = await request.delete(`/api/companies/deadbeefdeadbeefdeadbeef`, options)                                                     > 91 |         expect(response.status).toBe(404)          |                                 ^       92 |         done()       93 |       })       94 |     })        at Object.<anonymous> (tests/company.test.js:91:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Get clients (no existing clients in db)                                                                       expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        43 |         var response = await request.get('/api/clients', options)       44 |            > 45 |         expect(response.status).toBe(200)          |                                 ^       46 |         expect(response.data.datas).toHaveLength(0)       47 |         done()       48 |       })        at Object.<anonymous> (tests/client.test.js:45:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Create client with email only                                                                                 expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        51 |         var client = {email: "client1@example.com"}       52 |         var response = await request.post('/api/clients', client, options)     > 53 |         expect(response.status).toBe(201)          |                                 ^       54 |         client1Id = response.data.datas._id       55 |         done()       56 |       })        at Object.<anonymous> (tests/client.test.js:53:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Create client with all information and existing company                                                       expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        67 |         }       68 |         var response = await request.post('/api/clients', client, options)     > 69 |         expect(response.status).toBe(201)          |                                 ^       70 |         client2Id = response.data.datas._id       71 |         done()       72 |       })        at Object.<anonymous> (tests/client.test.js:69:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Create client with nonexistent company                                                                        expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        78 |         }       79 |         var response = await request.post('/api/clients', client, options)     > 80 |         expect(response.status).toBe(201)          |                                 ^       81 |         client3Id = response.data.datas._id       82 |         done()       83 |       })        at Object.<anonymous> (tests/client.test.js:80:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Should not create client with existing email                                                                  expect(received).toBe(expected) // Object.is equality      Expected: 422     Received: 401        87 |         var response = await request.post('/api/clients', client, options)       88 |      > 89 |         expect(response.status).toBe(422)          |                                 ^       90 |         done()       91 |       })       92 |         at Object.<anonymous> (tests/client.test.js:89:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Should not create client without email                                                                        expect(received).toBe(expected) // Object.is equality      Expected: 422     Received: 401         95 |         var response = await request.post('/api/clients', client, options)        96 |      >  97 |         expect(response.status).toBe(422)           |                                 ^        98 |         done()        99 |       })       100 |         at Object.<anonymous> (tests/client.test.js:97:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Get clients (existing clients in db)                                                                          expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        118 |         var response = await request.get('/api/clients', options)       119 |            > 120 |         expect(response.status).toBe(200)           |                                 ^       121 |         expect(response.data.datas.map(t => {return {       122 |           email: t.email,       123 |           lastname: t.lastname,        at Object.<anonymous> (tests/client.test.js:120:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Update client      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 404        143 |        144 |         var response = await request.put(`/api/clients/${client1Id}`, client, options)                                                             > 145 |         expect(response.status).toBe(200)           |                                 ^       146 |         done()       147 |       })       148 |         at Object.<anonymous> (tests/client.test.js:145:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Update client with nonexistent id                                                                             expect(received).toBe(expected) // Object.is equality      Expected: 404     Received: 401        151 |        152 |         var response = await request.put(`/api/clients/deadbeefdeadbeefdeadbeef`, client, options)                                                 > 153 |         expect(response.status).toBe(404)           |                                 ^       154 |         done()       155 |       })       156 |         at Object.<anonymous> (tests/client.test.js:153:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Delete client      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 404        157 |       it('Delete client', async done => {       158 |         var response = await request.delete(`/api/clients/${client3Id}`, options)                                                                  > 159 |         expect(response.status).toBe(200)           |                                 ^       160 |        161 |         response = await request.get('/api/clients', options)       162 |         expect(response.data.datas).toHaveLength(2)        at Object.<anonymous> (tests/client.test.js:159:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Client Suite Tests › Client CRUD operations › Delete client with nonexistent email                                                                          expect(received).toBe(expected) // Object.is equality      Expected: 404     Received: 401        166 |       it('Delete client with nonexistent email', async done => {       167 |         var response = await request.delete(`/api/clients/deadbeefdeadbeefdeadbeef`, options)                                                      > 168 |         expect(response.status).toBe(404)           |                                 ^       169 |         done()       170 |       })       171 |     })        at Object.<anonymous> (tests/client.test.js:168:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Get vulnerabilities (no existing vulnerabilities in db)                                         expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        59 |         var response = await request.get('/api/vulnerabilities', options)       60 |            > 61 |         expect(response.status).toBe(200)          |                                 ^       62 |         expect(response.data.datas).toHaveLength(0)       63 |         done()       64 |       })        at Object.<anonymous> (tests/vulnerability.test.js:61:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Get vulnerabilities for export (no existing vulnerabilities in db)                              expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        67 |         var response = await request.get('/api/vulnerabilities/export', options)                                                                      68 |            > 69 |         expect(response.status).toBe(200)          |                                 ^       70 |         expect(response.data.datas).toHaveLength(0)       71 |         done()       72 |       })        at Object.<anonymous> (tests/vulnerability.test.js:69:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Create 4 vulnerabilities                                                                        expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        106 |        107 |         var response = await request.post('/api/vulnerabilities', [vuln1, vuln2, vuln3, vuln4], options)     > 108 |         expect(response.status).toBe(201)           |                                 ^       109 |         done()       110 |       })       111 |         at Object.<anonymous> (tests/vulnerability.test.js:108:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Should not create vulnerability with with existing title                                        expect(received).toBe(expected) // Object.is equality      Expected: 422     Received: 401        116 |        117 |         var response = await request.post('/api/vulnerabilities', [vuln1], options)     > 118 |         expect(response.status).toBe(422)           |                                 ^       119 |         done()       120 |       })       121 |         at Object.<anonymous> (tests/vulnerability.test.js:118:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Should not create vulnerability without title                                                   expect(received).toBe(expected) // Object.is equality      Expected: 422     Received: 401        127 |         var response = await request.post('/api/vulnerabilities', [vuln1], options)       128 |      > 129 |         expect(response.status).toBe(422)           |                                 ^       130 |         done()       131 |       })       132 |         at Object.<anonymous> (tests/vulnerability.test.js:129:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Should not create vulnerability without locale                                                  expect(received).toBe(expected) // Object.is equality      Expected: 422     Received: 401        138 |         var response = await request.post('/api/vulnerabilities', [vuln1], options)       139 |      > 140 |         expect(response.status).toBe(422)           |                                 ^       141 |         done()       142 |       })       143 |         at Object.<anonymous> (tests/vulnerability.test.js:140:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Get vulnerabilities (existing vulnerabilities in db)                                            expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        172 |         var response = await request.get('/api/vulnerabilities', options)       173 |            > 174 |         expect(response.status).toBe(200)           |                                 ^       175 |         expect(response.data.datas).toEqual(       176 |           expect.arrayContaining([vuln1, vuln2, vuln3, vuln4])       177 |         )        at Object.<anonymous> (tests/vulnerability.test.js:174:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Get vulnerabilities for export (existing vulnerabilities in db)                                 expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        208 |         var response = await request.get('/api/vulnerabilities/export', options)                                                                     209 |            > 210 |         expect(response.status).toBe(200)           |                                 ^       211 |         expect(response.data.datas).toEqual(       212 |           expect.arrayContaining([vuln1, vuln2, vuln3, vuln4])       213 |         )        at Object.<anonymous> (tests/vulnerability.test.js:210:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Update vulnerability                                                                            expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        255 |         var vulnId = response.data.datas[1]._id       256 |         response = await request.put(`/api/vulnerabilities/${vulnId}`, update, options)                                                            > 257 |         expect(response.status).toBe(200)           |                                 ^       258 |        259 |         response = await request.get('/api/vulnerabilities', options)       260 |         expect(response.data.datas).toEqual(        at Object.<anonymous> (tests/vulnerability.test.js:257:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Should not update vulnerability with nonexistent ID                                             expect(received).toBe(expected) // Object.is equality      Expected: 404     Received: 401        268 |        269 |         var response = await request.put(`/api/vulnerabilities/deadbeefdeadbeefdeadbeef`, vulnerability, options)                                  > 270 |         expect(response.status).toBe(404)           |                                 ^       271 |         done()       272 |       })       273 |         at Object.<anonymous> (tests/vulnerability.test.js:270:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Get vulnerabilities by language                                                                 expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        274 |       it('Get vulnerabilities by language', async done => {       275 |         var response = await request.get(`/api/vulnerabilities/en`, options)                                                                       > 276 |         expect(response.status).toBe(200)           |                                 ^       277 |         expect(response.data.datas).toHaveLength(2)       278 |         done()       279 |       })        at Object.<anonymous> (tests/vulnerability.test.js:276:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Merge 2 vulnerabilities                                                                         expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        285 |        286 |         response = await request.put(`/api/vulnerabilities/merge/${vulnId}`, {vulnId: vulnIdMerge, locale: 'fr'}, options)                         > 287 |         expect(response.status).toBe(200)           |                                 ^       288 |        289 |         response = await request.get('/api/vulnerabilities', options)       290 |         expect(response.data.datas).toHaveLength(3)        at Object.<anonymous> (tests/vulnerability.test.js:287:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Delete vulnerability                                                                            expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        296 |         var vulnId = response.data.datas[2]._id       297 |         response = await request.delete(`/api/vulnerabilities/${vulnId}`, options)                                                                 > 298 |         expect(response.status).toBe(200)           |                                 ^       299 |        300 |         response = await request.get('/api/vulnerabilities', options)       301 |         expect(response.data.datas).toHaveLength(2)        at Object.<anonymous> (tests/vulnerability.test.js:298:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Delete vulnerability with nonexistent ID                                                        expect(received).toBe(expected) // Object.is equality      Expected: 404     Received: 401        305 |       it('Delete vulnerability with nonexistent ID', async done => {                                                                                 306 |         var response = await request.delete(`/api/vulnerabilities/deadbeefdeadbeefdeadbeef`, options)                                              > 307 |         expect(response.status).toBe(404)           |                                 ^       308 |         done()       309 |       })       310 |         at Object.<anonymous> (tests/vulnerability.test.js:307:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Create vulnerability from finding                                                               expect(received).toBe(expected) // Object.is equality      Expected: 201     Received: 401        316 |         }       317 |         var response = await request.post('/api/vulnerabilities/finding/en', finding, options)                                                     > 318 |         expect(response.status).toBe(201)           |                                 ^       319 |        320 |         response = await request.get('/api/vulnerabilities', options)       321 |         expect(response.data.datas).toHaveLength(3)        at Object.<anonymous> (tests/vulnerability.test.js:318:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Update vulnerability from finding                                                               expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        331 |         }       332 |         var response = await request.post('/api/vulnerabilities/finding/en', finding, options)                                                     > 333 |         expect(response.status).toBe(200)           |                                 ^       334 |        335 |         response = await request.get('/api/vulnerabilities', options)       336 |         expect(response.data.datas).toHaveLength(3)        at Object.<anonymous> (tests/vulnerability.test.js:333:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Should not create/update vulnerability from finding without title                               expect(received).toBe(expected) // Object.is equality      Expected: 422     Received: 401        344 |         }       345 |         var response = await request.post('/api/vulnerabilities/finding/en', finding, options)                                                     > 346 |         expect(response.status).toBe(422)           |                                 ^       347 |         done()       348 |       })       349 |         at Object.<anonymous> (tests/vulnerability.test.js:346:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Should not update vulnerability from finding that is not yet approved                           expect(received).toBe(expected) // Object.is equality      Expected: 403     Received: 401        354 |         }       355 |         var response = await request.post('/api/vulnerabilities/finding/en', finding, options)                                                     > 356 |         expect(response.status).toBe(403)           |                                 ^       357 |         done()       358 |       })       359 |         at Object.<anonymous> (tests/vulnerability.test.js:356:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Vulnerability Suite Tests › Vulnerability CRUD operations › Get vulnerability updates                                                                       expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 401        363 |        364 |         response = await request.get(`/api/vulnerabilities/updates/${vulnId}`, options)                                                            > 365 |         expect(response.status).toBe(200)           |                                 ^       366 |         expect(response.data.datas).toHaveLength(1)       367 |         done()       368 |       })        at Object.<anonymous> (tests/vulnerability.test.js:365:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Application configs › Get configs      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 404        20 |           var response = await request.get('/api/configs', options);       21 |            > 22 |           expect(response.status).toBe(200);          |                                   ^       23 |           expect(response.data.datas).toEqual(expected);       24 |           done();       25 |       })        at Object.<anonymous> (tests/configs.test.js:22:35)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Application configs › Edit configs      expect(received).toBe(expected) // Object.is equality      Expected: 200     Received: 404        37 |         };       38 |         var response = await request.put('/api/configs', modified, options);     > 39 |         expect(response.status).toBe(200);          |                                 ^       40 |        41 |         var response = await request.get('/api/configs', options);       42 |         expect(response.status).toBe(200);        at Object.<anonymous> (tests/configs.test.js:39:33)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Lib functions Suite Tests › html2ooxml tests › Bold      expect(received).toEqual(expected) // deep equality      Expected: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:b w:val=\"true\"/><w:bCs w:val=\"true\"/></w:rPr><w:t xml:space=\"preserve\">Bold</w:t></w:r></w:p>"                                              Received: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:b/><w:bCs/></w:rPr><w:t xml:space=\"preserve\">Bold</w:t></w:r></w:p>"                                                                               42 |         `</w:p>`       43 |         var ooxml = html2ooxml(html)     > 44 |         expect(ooxml).toEqual(expected)          |                       ^       45 |       })       46 |        47 |       it('Italic', () => {        at Object.<anonymous> (tests/lib.test.js:44:23)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Lib functions Suite Tests › html2ooxml tests › Italic      expect(received).toEqual(expected) // deep equality      Expected: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:i w:val=\"true\"/><w:iCs w:val=\"true\"/></w:rPr><w:t xml:space=\"preserve\">Italic</w:t></w:r></w:p>"                                            Received: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:i/><w:iCs/></w:rPr><w:t xml:space=\"preserve\">Italic</w:t></w:r></w:p>"                                                                             61 |         `</w:p>`       62 |         var ooxml = html2ooxml(html)     > 63 |         expect(ooxml).toEqual(expected)          |                       ^       64 |       })       65 |        66 |       it('Underline', () => {        at Object.<anonymous> (tests/lib.test.js:63:23)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Lib functions Suite Tests › html2ooxml tests › Strike      expect(received).toEqual(expected) // deep equality      Expected: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:strike w:val=\"true\"/></w:rPr><w:t xml:space=\"preserve\">Strike</w:t></w:r></w:p>"                                                              Received: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:strike/></w:rPr><w:t xml:space=\"preserve\">Strike</w:t></w:r></w:p>"                                                                                 97 |         `</w:p>`        98 |         var ooxml = html2ooxml(html)     >  99 |         expect(ooxml).toEqual(expected)           |                       ^       100 |       })       101 |        102 |       it('Bold and Italics', () => {        at Object.<anonymous> (tests/lib.test.js:99:23)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Lib functions Suite Tests › html2ooxml tests › Bold and Italics      expect(received).toEqual(expected) // deep equality      Expected: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:b w:val=\"true\"/><w:bCs w:val=\"true\"/><w:i w:val=\"true\"/><w:iCs w:val=\"true\"/></w:rPr><w:t xml:space=\"preserve\">Mark</w:t></w:r></w:p>"                                                                               Received: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:b/><w:bCs/><w:i/><w:iCs/></w:rPr><w:t xml:space=\"preserve\">Mark</w:t></w:r></w:p>"                                                                 118 |         `</w:p>`       119 |         var ooxml = html2ooxml(html)     > 120 |         expect(ooxml).toEqual(expected)           |                       ^       121 |       })       122 |        123 |       it('All marks', () => {        at Object.<anonymous> (tests/lib.test.js:120:23)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)    ● Lib functions Suite Tests › html2ooxml tests › All marks      expect(received).toEqual(expected) // deep equality      Expected: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:b w:val=\"true\"/><w:bCs w:val=\"true\"/><w:i w:val=\"true\"/><w:iCs w:val=\"true\"/><w:u w:val=\"single\"/><w:strike w:val=\"true\"/></w:rPr><w:t xml:space=\"preserve\">Mark</w:t></w:r></w:p>"                              Received: "<w:p><w:r><w:t xml:space=\"preserve\">Paragraph </w:t></w:r><w:r><w:rPr><w:b/><w:bCs/><w:i/><w:iCs/><w:u w:val=\"single\"/><w:strike/></w:rPr><w:t xml:space=\"preserve\">Mark</w:t></w:r></w:p>"                               141 |         `</w:p>`       142 |         var ooxml = html2ooxml(html)     > 143 |         expect(ooxml).toEqual(expected)           |                       ^       144 |       })       145 |        146 |       it('Heading 1', () => {        at Object.<anonymous> (tests/lib.test.js:143:23)           at runMicrotasks (<anonymous>)       at processTicksAndRejections (node:internal/process/task_queues:96:5)  Test Suites: 1 failed, 1 total Tests:       101 failed, 30 passed, 131 total Snapshots:   0 total Time:        6.414 s Ran all test suites matching /tests\/index.test.js/i. ERROR: 1 Stopping pwndoc-backend  ... done Stopping pwndoc-frontend ... done Stopping mongo-pwndoc    ... done Removing pwndoc-backend  ... done Removing pwndoc-frontend ... done Removing mongo-pwndoc    ... done Removing network pwndoc-master_backend                                                                               ┌──(kali㉿kali)-[~/Desktop/pwndoc-master] └─$  
yeln4ts commented 2 years ago

The tests are not up to date. Can you share what is the error when you try to build ?

whereiscodedude commented 2 years ago

pwndoc-verbose.txt this full test results

MaxNad commented 1 year ago

Tests should be working once PR #448 is merged