Test Report

Started: 2024-10-23 15:52:08
Suites (6)
6 passed
0 failed
0 pending
Tests (39)
39 passed
0 failed
0 pending
NotificationSystem
should create a notification system with valid message and type
passed
0.002s
NotificationSystem
should send a notification with correct details
passed
0.001s
NotificationSystem
should throw an error for invalid message types
passed
0.005s
NotificationSystem
should throw an error if recipient is empty
passed
0.001s
NotificationSystem
should throw an error if task title is empty
passed
0s
NotificationSystem
should throw an error if category is empty
passed
0s
NotificationSystem
should throw an error if task type is empty
passed
0.001s
NotificationSystem
should throw an error for invalid deadline
passed
0s
Category
should create a category with a valid name
passed
0.002s
Category
should return the correct name when calling toString
passed
0.001s
Category
should update the category name to a valid name
passed
0.001s
Category
should throw an error when trying to create an invalid category
passed
0.004s
Category
should throw an error when creating a category with an empty name
passed
0s
User
should generate an id when creating a new user
passed
0.002s
User
should set a new password
passed
0s
User
should throw an error if the password is less than 8 characters
passed
0.004s
User
should assign a role to the user
passed
0s
Task
should create a new task
passed
0.003s
Task
should validate task types correctly
passed
0.006s
Task
should validate task status correctly
passed
0.002s
Task
should throw an error for an empty title
passed
0s
Task
should throw an error for an invalid deadline
passed
0.001s
Task
should mark task as completed
passed
0s
Task
should mark task as in progress
passed
0s
Task
should mark task as not started
passed
0s
Grade
should create a grade with a valid value
passed
0.002s
Grade
should return the correct value when calling toString
passed
0s
Grade
should update the grade value to a valid value
passed
0s
Grade
should throw an error when trying to create an invalid grade
passed
0.004s
Grade
should throw an error when creating a grade with an empty value
passed
0s
TaskManager
should throw error if teacher is not set when creating task
passed
0.013s
TaskManager
should create and assign a task to a student
passed
0.003s
TaskManager
should throw error if task with same ID already exists
passed
0s
TaskManager
should list all tasks
passed
0.003s
TaskManager
should log "No tasks available" if no tasks exist
passed
0s
TaskManager
should update a task successfully
passed
0.001s
TaskManager
should remove a task by taskId
passed
0s
TaskManager
should remind student about unstarted task
passed
0s
TaskManager
should notify student if deadline is within two days
passed
0.001s