-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
178cf4e
commit be57c37
Showing
6 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,29 +161,29 @@ describe('students', (): void => { | |
|
||
it('create student', async () => { | ||
const exampleStudent = new Student( | ||
"103", | ||
"sample_student", | ||
"[email protected]", | ||
"Sample", | ||
"Student", | ||
'103', | ||
'sample_student', | ||
'[email protected]', | ||
'Sample', | ||
'Student', | ||
false, | ||
2024, | ||
new Date('April 2, 2023 01:15:00'), | ||
new Date('April 2, 2024 01:15:00'), | ||
"12345", | ||
'12345', | ||
['student'], | ||
[], | ||
[], | ||
[] | ||
[], | ||
); | ||
|
||
await getStudents(); | ||
expect(students).not.toBeNull(); | ||
expect(Array.isArray(students.value)).toBe(true); | ||
const prevLength = students.value?.length || 0; | ||
const prevLength = students.value?.length ?? 0; | ||
|
||
await createStudent(exampleStudent); | ||
await getStudents() | ||
await getStudents(); | ||
|
||
expect(students).not.toBeNull(); | ||
expect(Array.isArray(students.value)).toBe(true); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters