- const res = await getUserNotifications(server.url, userAccessToken, 0, 10)
-
- const notifications = res.body.data as UserNotification[]
- expect(notifications[0].read).to.be.false
- expect(notifications[1].read).to.be.false
- expect(notifications[2].read).to.be.true
- expect(notifications[3].read).to.be.true
- expect(notifications[4].read).to.be.true
- expect(notifications[5].read).to.be.false
+ const { data } = await server.notifications.list({ token: userToken, start: 0, count: 10 })
+
+ expect(data[0].read).to.be.false
+ expect(data[1].read).to.be.false
+ expect(data[2].read).to.be.true
+ expect(data[3].read).to.be.true
+ expect(data[4].read).to.be.true
+ expect(data[5].read).to.be.false