mirror of
https://github.com/outline/outline.git
synced 2026-11-29 16:40:27 +03:00
fix: complete user profile in unnecessary
This commit is contained in:
1 parent
007cbeaab6
commit
cbff931907
2 files changed
+2
-3
No files matched your search
@@ -8,7 +8,6 @@ export default function presentNotification(notification: Notification) {
|
||||
createdAt: notification.createdAt,
|
||||
event: notification.event,
|
||||
userId: notification.userId,
|
||||
user: presentUser(notification.user),
|
||||
actorId: notification.actorId,
|
||||
actor: notification.actor ? presentUser(notification.actor) : undefined,
|
||||
commentId: notification.commentId,
|
||||
|
||||
@@ -61,7 +61,7 @@ describe("#notifications.list", () => {
|
||||
expect(body.data.length).toBe(3);
|
||||
expect(body.unseenCount).toBe(2);
|
||||
expect((randomElement(body.data) as any).actor.id).toBe(actor.id);
|
||||
expect((randomElement(body.data) as any).user.id).toBe(user.id);
|
||||
expect((randomElement(body.data) as any).userId).toBe(user.id);
|
||||
const events = body.data.map((n: any) => n.event);
|
||||
expect(events).toContain(NotificationEventType.UpdateDocument);
|
||||
expect(events).toContain(NotificationEventType.CreateComment);
|
||||
@@ -118,7 +118,7 @@ describe("#notifications.list", () => {
|
||||
expect(body.data.length).toBe(1);
|
||||
expect(body.unseenCount).toBe(1);
|
||||
expect((randomElement(body.data) as any).actor.id).toBe(actor.id);
|
||||
expect((randomElement(body.data) as any).user.id).toBe(user.id);
|
||||
expect((randomElement(body.data) as any).userId).toBe(user.id);
|
||||
const events = body.data.map((n: any) => n.event);
|
||||
expect(events).toContain(NotificationEventType.MentionedInComment);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user