-const expect = chai.expect
-
-async function checkNotifications (server: ServerInfo, token: string, expected: UserNotificationType[]) {
- const { data } = await server.notificationsCommand.list({ token, start: 0, count: 10, unread: true })
+async function checkNotifications (server: PeerTubeServer, token: string, expected: UserNotificationType[]) {
+ const { data } = await server.notifications.list({ token, start: 0, count: 10, unread: true })