* Starting RabbitMQ Messaging Server rabbitmq-server ...done. * Starting MariaDB database server mariadbd ...done. npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported added 302 packages, and audited 304 packages in 5s 89 packages are looking for funding run `npm fund` for details 3 vulnerabilities (2 moderate, 1 high) To address all issues, run: npm audit fix Run `npm audit` for details. > @crosslab/service-device-reservation@0.1.0 test > npm run build && npx c8 --include="app/mainLoop.js" --include="app/messageDefinition.js" mocha --require mocha-suppress-logs --exit app/*_test.js > @crosslab/service-device-reservation@0.1.0 build > npm-run-all build:* > @crosslab/service-device-reservation@0.1.0 build:compile > npx tsc > @crosslab/service-device-reservation@0.1.0 build:add-shebang > bash scripts/add-shebang.sh mainLoop.ts ✔ mainLoop.ts get existing (1005ms) ✔ mainLoop.ts get non existing (1003ms) ✔ mainLoop.ts delete non existing (1002ms) ✔ mainLoop.ts basic reservate -> get -> delete (5007ms) ✔ mainLoop.ts reservate booked slot (4003ms) ✔ mainLoop.ts new missing values (4006ms) ✔ mainLoop.ts get missing values (1001ms) ✔ mainLoop.ts bad dates (2002ms) ✔ mainLoop.ts delete missing values (1002ms) ✔ mainLoop.ts broken random (1002ms) ✔ mainLoop.ts not us (1002ms) messageDefinition.ts ✔ ReservationMessage.fromString correct ✔ ReservationMessage.fromString Type ✔ ReservationMessage.fromString AnswerQueue ✔ ReservationMessage.fromString Device ✔ ReservationMessage.fromString Start/End ✔ ReservationMessage.fromString BookingReference ✔ ReservationMessage.fromString ReservationID ✔ ReservationMessage.fromString general bad data ✔ ReservationAnswer.fromString correct ✔ ReservationAnswer.fromString Type ✔ ReservationAnswer.fromString Device ✔ ReservationAnswer.fromString Start ✔ ReservationAnswer.fromString End ✔ ReservationAnswer.fromString BookingReference ✔ ReservationAnswer.fromString ReservationID ✔ ReservationAnswer.fromString Deleted/Successful/ErrorMessage ✔ ReservationMessage.fromString general bad data 28 passing (48s) ----------------------|---------|----------|---------|---------|------------------------------------ File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------------------|---------|----------|---------|---------|------------------------------------ All files | 92.24 | 95.13 | 87.5 | 92.24 | mainLoop.ts | 86.26 | 84.09 | 50 | 86.26 | ...309-320,333-334,336-353,359-362 messageDefinition.ts | 100 | 100 | 100 | 100 | ----------------------|---------|----------|---------|---------|------------------------------------ * Stopping MariaDB database server mariadbd ...done. * Stopping RabbitMQ Messaging Server rabbitmq-server ...done.