Skip to content

Commit 39672fe

Browse files
committed
test: fix Geolocation tests
1 parent e518a82 commit 39672fe

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/Attachment/__tests__/Geolocation.test.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ describe.each([
106106
});
107107

108108
it('renders own live location', async () => {
109-
const location = generateLiveLocationResponse({ user_id: ownUser.id });
109+
const location = generateLiveLocationResponse({
110+
end_at: new Date(Date.now() + 10000).toISOString(),
111+
user_id: ownUser.id,
112+
});
110113
await renderComponent({
111114
props: { GeolocationAttachmentMapPlaceholder, GeolocationMap, location },
112115
});
@@ -129,7 +132,10 @@ describe.each([
129132
}
130133
});
131134
it("other user's live location", async () => {
132-
const location = generateLiveLocationResponse({ user_id: otherUser.id });
135+
const location = generateLiveLocationResponse({
136+
end_at: new Date(Date.now() + 10000).toISOString(),
137+
user_id: otherUser.id,
138+
});
133139
await renderComponent({
134140
props: { GeolocationAttachmentMapPlaceholder, GeolocationMap, location },
135141
});

0 commit comments

Comments
 (0)