Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcao13 authored and andrewazores committed Oct 27, 2022
1 parent 08ab1ca commit 33b4489
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/test/Archives/AllArchivedRecordingsTable.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,25 +141,30 @@ jest

jest
.spyOn(defaultServices.notificationChannel, 'messages')
.mockReturnValueOnce(of()) // renders correctly
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())
.mockReturnValueOnce(of()) // renders correctly // NotificationCategory.RecordingMetadataUpdated
.mockReturnValueOnce(of()) // NotificationCategory.ActiveRecordingSaved
.mockReturnValueOnce(of()) // NotificationCategory.ArchivedRecordingCreated
.mockReturnValueOnce(of()) // NotificationCategory.ArchivedRecordingDeleted

.mockReturnValueOnce(of()) // shows no recordings when empty
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())

.mockReturnValueOnce(of()) // has the correct table elements
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())

.mockReturnValueOnce(of()) // correctly handles the search function
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())

.mockReturnValueOnce(of()) // expands targets to show their <ArchivedRecordingsTable />
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())
.mockReturnValueOnce(of())

.mockReturnValueOnce(of(mockRecordingSavedNotification)) // increments the count when an archived recording is saved
.mockReturnValueOnce(of())
Expand Down

0 comments on commit 33b4489

Please sign in to comment.