ReflectionsProjections / rp-api-2023

Core Backend API Layer for Reflections | Projections 2023, powered by Nest.js
MIT License
0 stars 0 forks source link

Fetch schedule #48

Closed zhuangy47 closed 1 year ago

zhuangy47 commented 1 year ago

Added check for if the event is supposed to be visible and if the dates are within conference date bounds.

github-actions[bot] commented 1 year ago

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
St.:grey_question:
Category Percentage Covered / Total
🟑 Statements
63.74% (+0.25% πŸ”Ό)
501/786
πŸ”΄ Branches
12.61% (-0.11% πŸ”»)
14/111
πŸ”΄ Functions
27.1% (-0.26% πŸ”»)
29/107
🟑 Lines
61.2% (-0.06% πŸ”»)
437/714
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :----------- | :--------- | :------- | :-------- | :---- | | 🟒 | constants.ts | 100% | 100% | 100% | 100% |
Show files with reduced coverage πŸ”»
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------- | :------------------------------------------------------------- | :------- | :--------------------------------------------------------- | :------------------------------------------------------------- | | πŸ”΄ |
`...` / events.service.ts
|
29.55% (+2.88% πŸ”Ό)
| 0% |
9.09% (-0.91% πŸ”»)
|
26.19% (+0.55% πŸ”Ό)
|

Test suite run failed

Failed tests: 2/24. Failed suites: 1/15.
``` ● EventsController β€Ί registerAttendeeWithEmail calls registerAttendance if user is found expect(received).resolves.toEqual(expected) // deep equality - Expected - 0 + Received + 2 Object { + "email": "test@rp.org", "message": "attendee registered for event", + "name": [Function mockConstructor], "priority": false, "status": 202, } 113 | await expect( 114 | controller.registerAttendeeWithEmail(eventId, { email }), > 115 | ).resolves.toEqual(successResponse); | ^ 116 | 117 | expect(registerAttendanceSpy).toBeCalledWith( 118 | eventId, at Object.toEqual (../node_modules/expect/build/index.js:174:22) at Object. (events/events.controller.spec.ts:115:16) ● EventsController β€Ί registerAttendeeWithQR calls registerAttendance if user is found expect(received).resolves.toEqual(expected) // deep equality - Expected - 0 + Received + 2 Object { + "email": "test@rp.org", "message": "attendee registered for event", + "name": [Function mockConstructor], "priority": false, "status": 202, } 172 | await expect( 173 | controller.registerAttendeeWithQR(eventId, { token }), > 174 | ).resolves.toEqual(successResponse); | ^ 175 | 176 | expect(registerAttendanceSpy).toBeCalledWith( 177 | eventId, at Object.toEqual (../node_modules/expect/build/index.js:174:22) at Object. (events/events.controller.spec.ts:174:16) ```

Report generated by πŸ§ͺjest coverage report action from 956ca1defd1b03e7fc5bd974863c54ed70dceeef