@@ -64,38 +64,43 @@ class FeedScreenTest {
64
64
// Mock posts
65
65
val testPosts =
66
66
listOf (
67
- Post (
67
+ Post ( // Post created by the logged-in user
68
68
uid = " 1" ,
69
69
uri = " http://example.com/1.jpg" ,
70
- username = testUserProfile.email, // Post created by the logged-in user
70
+ username = testUserProfile.email,
71
+ userMail = testUserProfile.email,
71
72
latitude = 37.7749 , // San Francisco
72
73
longitude = - 122.4194 ,
73
74
description = " This is a test description" ),
74
75
Post (
75
76
uid = " 2" ,
76
77
uri = " http://example.com/2.jpg" ,
77
78
username = " User2" , // Post created by another user
79
+ userMail = " User2" ,
78
80
latitude = 34.0522 , // Los Angeles
79
81
longitude = - 118.2437 ,
80
82
description = " This is another test description" ),
81
83
Post (
82
84
uid = " 3" ,
83
85
uri = " http://example.com/3.jpg" ,
84
- username = " User3" , // Another user's post
86
+ username = " User3" ,
87
+ userMail = " User3" , // Another user's post
85
88
latitude = 36.7783 , // Fresno (closer to SF)
86
89
longitude = - 119.4179 ,
87
90
description = " This is yet another test description" ),
88
91
Post (
89
92
uid = " 4" ,
90
93
uri = " User4" ,
91
94
username = " user4@example.com" , // Another user's post
95
+ userMail = " User4" ,
92
96
latitude = 40.7128 , // New York City (farther from SF than LA or Fresno)
93
97
longitude = - 74.0060 ,
94
98
description = " This is a test description" ),
95
99
Post (
96
100
uid = " 5" ,
97
101
uri = " User5" ,
98
102
username = " user5@example.com" , // Another user's post
103
+ userMail = " User5" ,
99
104
latitude = - 33.8688 , // Sydney, Australia (farthest from SF)
100
105
longitude = 151.2093 ,
101
106
description = " This is a test description" ))
0 commit comments