@@ -154,21 +154,21 @@ <h2>Snapshots</h2>
154154 "unmatched": 0,
155155 "updated": 0
156156 },
157- "startTime": 1747823833511 ,
157+ "startTime": 1747846429942 ,
158158 "success": false,
159159 "testResults": [
160160 {
161161 "leaks": false,
162162 "numFailingTests": 0,
163- "numPassingTests": 4 ,
163+ "numPassingTests": 7 ,
164164 "numPendingTests": 0,
165165 "numTodoTests": 0,
166166 "openHandles": [],
167167 "perfStats": {
168- "end": 1747823837103 ,
169- "runtime": 3007 ,
168+ "end": 1747846435233 ,
169+ "runtime": 4662 ,
170170 "slow": false,
171- "start": 1747823834096
171+ "start": 1747846430571
172172 },
173173 "skipped": false,
174174 "snapshot": {
@@ -180,211 +180,211 @@ <h2>Snapshots</h2>
180180 "unmatched": 0,
181181 "updated": 0
182182 },
183- "testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\test \\notification\\notification .controller.spec.ts",
183+ "testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\src \\notification\\presentation\\controllers\\log .controller.spec.ts",
184184 "testResults": [
185185 {
186186 "ancestorTitles": [
187- "NotificationController ",
188- "send "
187+ "LogController ",
188+ "getLogs "
189189 ],
190- "duration": 25 ,
190+ "duration": 35 ,
191191 "failureDetails": [],
192192 "failureMessages": [],
193- "fullName": "NotificationController send should send notification and log successfully ",
193+ "fullName": "LogController getLogs should return logs with default pagination ",
194194 "invocations": 1,
195195 "location": null,
196- "numPassingAsserts": 3 ,
196+ "numPassingAsserts": 2 ,
197197 "retryReasons": [],
198198 "status": "passed",
199- "title": "should send notification and log successfully "
199+ "title": "should return logs with default pagination "
200200 },
201201 {
202202 "ancestorTitles": [
203- "NotificationController ",
204- "send "
203+ "LogController ",
204+ "getLogById "
205205 ],
206- "duration": 9 ,
206+ "duration": 3 ,
207207 "failureDetails": [],
208208 "failureMessages": [],
209- "fullName": "NotificationController send should throw error if strategy send fails ",
209+ "fullName": "LogController getLogById should return a log by ID ",
210210 "invocations": 1,
211211 "location": null,
212212 "numPassingAsserts": 1,
213213 "retryReasons": [],
214214 "status": "passed",
215- "title": "should throw error if strategy send fails "
215+ "title": "should return a log by ID "
216216 },
217217 {
218218 "ancestorTitles": [
219- "NotificationController ",
220- "getNotificationHistory "
219+ "LogController ",
220+ "getLogById "
221221 ],
222- "duration": 3 ,
222+ "duration": 12 ,
223223 "failureDetails": [],
224224 "failureMessages": [],
225- "fullName": "NotificationController getNotificationHistory should return notification history with default pagination ",
225+ "fullName": "LogController getLogById should throw NotFoundException if log not found ",
226226 "invocations": 1,
227227 "location": null,
228228 "numPassingAsserts": 2,
229229 "retryReasons": [],
230230 "status": "passed",
231- "title": "should return notification history with default pagination "
231+ "title": "should throw NotFoundException if log not found "
232232 },
233233 {
234234 "ancestorTitles": [
235- "NotificationController ",
236- "getNotificationHistory "
235+ "LogController ",
236+ "deleteLogById "
237237 ],
238- "duration": 2 ,
238+ "duration": 1 ,
239239 "failureDetails": [],
240240 "failureMessages": [],
241- "fullName": "NotificationController getNotificationHistory should handle custom pagination ",
241+ "fullName": "LogController deleteLogById should delete a log by ID ",
242242 "invocations": 1,
243243 "location": null,
244- "numPassingAsserts": 2 ,
244+ "numPassingAsserts": 0 ,
245245 "retryReasons": [],
246246 "status": "passed",
247- "title": "should handle custom pagination"
248- }
249- ],
250- "failureMessage": null
251- },
252- {
253- "leaks": false,
254- "numFailingTests": 0,
255- "numPassingTests": 7,
256- "numPendingTests": 0,
257- "numTodoTests": 0,
258- "openHandles": [],
259- "perfStats": {
260- "end": 1747823837871,
261- "runtime": 3777,
262- "slow": false,
263- "start": 1747823834094
264- },
265- "skipped": false,
266- "snapshot": {
267- "added": 0,
268- "fileDeleted": false,
269- "matched": 0,
270- "unchecked": 0,
271- "uncheckedKeys": [],
272- "unmatched": 0,
273- "updated": 0
274- },
275- "testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\test\\logger\\log.controller.spec.ts",
276- "testResults": [
247+ "title": "should delete a log by ID"
248+ },
277249 {
278250 "ancestorTitles": [
279251 "LogController",
280- "getLogs "
252+ "deleteLogById "
281253 ],
282- "duration": 13 ,
254+ "duration": 3 ,
283255 "failureDetails": [],
284256 "failureMessages": [],
285- "fullName": "LogController getLogs should return logs with default pagination ",
257+ "fullName": "LogController deleteLogById should throw NotFoundException if log not found ",
286258 "invocations": 1,
287259 "location": null,
288- "numPassingAsserts": 2 ,
260+ "numPassingAsserts": 1 ,
289261 "retryReasons": [],
290262 "status": "passed",
291- "title": "should return logs with default pagination "
263+ "title": "should throw NotFoundException if log not found "
292264 },
293265 {
294266 "ancestorTitles": [
295267 "LogController",
296- "getLogById "
268+ "getLogStats "
297269 ],
298270 "duration": 2,
299271 "failureDetails": [],
300272 "failureMessages": [],
301- "fullName": "LogController getLogById should return a log by ID ",
273+ "fullName": "LogController getLogStats should return log statistics ",
302274 "invocations": 1,
303275 "location": null,
304276 "numPassingAsserts": 1,
305277 "retryReasons": [],
306278 "status": "passed",
307- "title": "should return a log by ID "
279+ "title": "should return log statistics "
308280 },
309281 {
310282 "ancestorTitles": [
311283 "LogController",
312- "getLogById "
284+ "getLogStats "
313285 ],
314- "duration": 8 ,
286+ "duration": 2 ,
315287 "failureDetails": [],
316288 "failureMessages": [],
317- "fullName": "LogController getLogById should throw NotFoundException if log not found ",
289+ "fullName": "LogController getLogStats should return stats without filters ",
318290 "invocations": 1,
319291 "location": null,
320- "numPassingAsserts": 2 ,
292+ "numPassingAsserts": 1 ,
321293 "retryReasons": [],
322294 "status": "passed",
323- "title": "should throw NotFoundException if log not found"
324- },
295+ "title": "should return stats without filters"
296+ }
297+ ],
298+ "failureMessage": null
299+ },
300+ {
301+ "leaks": false,
302+ "numFailingTests": 0,
303+ "numPassingTests": 4,
304+ "numPendingTests": 0,
305+ "numTodoTests": 0,
306+ "openHandles": [],
307+ "perfStats": {
308+ "end": 1747846435444,
309+ "runtime": 4875,
310+ "slow": false,
311+ "start": 1747846430569
312+ },
313+ "skipped": false,
314+ "snapshot": {
315+ "added": 0,
316+ "fileDeleted": false,
317+ "matched": 0,
318+ "unchecked": 0,
319+ "uncheckedKeys": [],
320+ "unmatched": 0,
321+ "updated": 0
322+ },
323+ "testFilePath": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog\\src\\notification\\presentation\\controllers\\notification.controller.spec.ts",
324+ "testResults": [
325325 {
326326 "ancestorTitles": [
327- "LogController ",
328- "deleteLogById "
327+ "NotificationController ",
328+ "send "
329329 ],
330- "duration": 1 ,
330+ "duration": 30 ,
331331 "failureDetails": [],
332332 "failureMessages": [],
333- "fullName": "LogController deleteLogById should delete a log by ID ",
333+ "fullName": "NotificationController send should send notification and log successfully ",
334334 "invocations": 1,
335335 "location": null,
336- "numPassingAsserts": 0 ,
336+ "numPassingAsserts": 3 ,
337337 "retryReasons": [],
338338 "status": "passed",
339- "title": "should delete a log by ID "
339+ "title": "should send notification and log successfully "
340340 },
341341 {
342342 "ancestorTitles": [
343- "LogController ",
344- "deleteLogById "
343+ "NotificationController ",
344+ "send "
345345 ],
346- "duration": 2 ,
346+ "duration": 8 ,
347347 "failureDetails": [],
348348 "failureMessages": [],
349- "fullName": "LogController deleteLogById should throw NotFoundException if log not found ",
349+ "fullName": "NotificationController send should throw error if strategy send fails ",
350350 "invocations": 1,
351351 "location": null,
352352 "numPassingAsserts": 1,
353353 "retryReasons": [],
354354 "status": "passed",
355- "title": "should throw NotFoundException if log not found "
355+ "title": "should throw error if strategy send fails "
356356 },
357357 {
358358 "ancestorTitles": [
359- "LogController ",
360- "getLogStats "
359+ "NotificationController ",
360+ "getNotificationHistory "
361361 ],
362- "duration": 1 ,
362+ "duration": 2 ,
363363 "failureDetails": [],
364364 "failureMessages": [],
365- "fullName": "LogController getLogStats should return log statistics ",
365+ "fullName": "NotificationController getNotificationHistory should return notification history with default pagination ",
366366 "invocations": 1,
367367 "location": null,
368- "numPassingAsserts": 1 ,
368+ "numPassingAsserts": 2 ,
369369 "retryReasons": [],
370370 "status": "passed",
371- "title": "should return log statistics "
371+ "title": "should return notification history with default pagination "
372372 },
373373 {
374374 "ancestorTitles": [
375- "LogController ",
376- "getLogStats "
375+ "NotificationController ",
376+ "getNotificationHistory "
377377 ],
378- "duration": 1 ,
378+ "duration": 2 ,
379379 "failureDetails": [],
380380 "failureMessages": [],
381- "fullName": "LogController getLogStats should return stats without filters ",
381+ "fullName": "NotificationController getNotificationHistory should handle custom pagination ",
382382 "invocations": 1,
383383 "location": null,
384- "numPassingAsserts": 1 ,
384+ "numPassingAsserts": 2 ,
385385 "retryReasons": [],
386386 "status": "passed",
387- "title": "should return stats without filters "
387+ "title": "should handle custom pagination "
388388 }
389389 ],
390390 "failureMessage": null
@@ -450,7 +450,7 @@ <h2>Snapshots</h2>
450450 ],
451451 "rootDir": "D:\\Github_profile\\SmartEduHub-Repo\\NotifyLog",
452452 "runTestsByPath": false,
453- "seed": 481651347 ,
453+ "seed": 1078277408 ,
454454 "skipFilter": false,
455455 "snapshotFormat": {
456456 "escapeString": false,
0 commit comments