Palus-Somni-Team / shikicinema-server

2 stars 0 forks source link

[#85] Refactor tests - use strict types #99

Closed BasicEC closed 1 year ago

BasicEC commented 1 year ago

Closes: #85

Основное изменение: тестовый клиент теперь возвращает не JavaScript Object, а именно класс dto. Теперь можно делать toStrictEqual сравнивая ответ от API и dto которое было создано в тесте.

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements
94.02% (+0.04% 🔼)
1006/1070
🟢 Branches
82.72% (+0.22% 🔼)
134/162
🟢 Functions
88.31% (+0.05% 🔼)
219/248
🟢 Lines
93.36% (+0.05% 🔼)
857/918

Test suite run success

144 tests passing in 12 suites.

Report generated by 🧪jest coverage report action from b9977d6720d1256f80fe37d34fca465be78f5774

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements
93.94% (+0.04% 🔼)
1055/1123
🟢 Branches
81.55% (+0.22% 🔼)
137/168
🟢 Functions
87.6% (+0.05% 🔼)
226/258
🟢 Lines
93.18% (+0.05% 🔼)
888/953

Test suite run success

147 tests passing in 13 suites.

Report generated by 🧪jest coverage report action from 4e5f3cd8f0f9d7a25496b2ddcce013007bfa23f9