|
161 | 161 |
|
162 | 162 | SEGScreenPayload *payload = [[SEGScreenPayload alloc] initWithName:@"Shirts" properties:@{} context:@{} integrations:@{}]; |
163 | 163 | [integration screen:payload]; |
164 | | - [verify(amplitude) logEvent:@"Viewed Shirts Screen" withEventProperties:@{}]; |
| 164 | + [verify(amplitude) logEvent:@"Viewed Shirts Screen" withEventProperties:@{} withGroups:nil outOfSession:false]; |
165 | 165 | }); |
166 | 166 |
|
167 | 167 | it(@"trackAllPagesV2", ^{ |
|
174 | 174 | [integration screen:payload]; |
175 | 175 | [verify(amplitude) logEvent:@"Loaded a Screen" withEventProperties:@{ @"name" : @"Shirts", |
176 | 176 | @"url" : @"seinfeld.wikia.com/wiki/The_Puffy_Shirt", |
177 | | - @"Feed Type" : @"private" }]; |
| 177 | + @"Feed Type" : @"private" } withGroups:nil outOfSession:false]; |
178 | 178 | }); |
179 | 179 |
|
180 | 180 | }); |
|
229 | 229 | SEGTrackPayload *payload = [[SEGTrackPayload alloc] initWithEvent:@"Email Sent" properties:@{} context:@{} integrations:@{}]; |
230 | 230 |
|
231 | 231 | [integration track:payload]; |
232 | | - [verify(amplitude) logEvent:@"Email Sent" withEventProperties:@{}]; |
| 232 | + [verify(amplitude) logEvent:@"Email Sent" withEventProperties:@{} withGroups:nil outOfSession:false]; |
233 | 233 | }); |
234 | 234 |
|
235 | 235 | it(@"tracks a basic event with props", ^{ |
|
243 | 243 | integrations:@{}]; |
244 | 244 |
|
245 | 245 | [integration track:payload]; |
246 | | - [verify(amplitude) logEvent:@"Viewed Puffy Shirt" withEventProperties:props]; |
| 246 | + [verify(amplitude) logEvent:@"Viewed Puffy Shirt" withEventProperties:props withGroups:nil outOfSession:false]; |
247 | 247 |
|
248 | 248 | }); |
249 | 249 |
|
|
254 | 254 |
|
255 | 255 | SEGTrackPayload *payload = [[SEGTrackPayload alloc] initWithEvent:@"Sent Product Link" properties:props context:@{} integrations:@{ @"Amplitude" : @{@"groups" : @{@"jobs" : @[ @"Pendant Publishing" ]}} }]; |
256 | 256 | [integration track:payload]; |
257 | | - [verify(amplitude) logEvent:@"Sent Product Link" withEventProperties:props withGroups:@{ @"jobs" : @[ @"Pendant Publishing" ] }]; |
| 257 | + [verify(amplitude) logEvent:@"Sent Product Link" withEventProperties:props withGroups:@{ @"jobs" : @[ @"Pendant Publishing" ] } outOfSession:false]; |
258 | 258 | }); |
259 | 259 |
|
260 | 260 | it(@"doesn't track group if not NSDictionary", ^{ |
|
264 | 264 |
|
265 | 265 | SEGTrackPayload *payload = [[SEGTrackPayload alloc] initWithEvent:@"Sent Product Link" properties:props context:@{} integrations:@{ @"Amplitude" : @{@"groups" : @"jobs"} }]; |
266 | 266 | [integration track:payload]; |
267 | | - [verify(amplitude) logEvent:@"Sent Product Link" withEventProperties:props]; |
| 267 | + [verify(amplitude) logEvent:@"Sent Product Link" withEventProperties:props withGroups:nil outOfSession:false]; |
268 | 268 | }); |
269 | 269 |
|
270 | 270 | it(@"tracks an event with groups and outOfSession", ^{ |
|
284 | 284 |
|
285 | 285 | SEGTrackPayload *payload = [[SEGTrackPayload alloc] initWithEvent:@"Reminder Sent" properties:props context:@{} integrations:@{ @"Amplitude" : @{@"outOfSession" : @YES} }]; |
286 | 286 | [integration track:payload]; |
287 | | - [verify(amplitude) logEvent:@"Reminder Sent" withEventProperties:props outOfSession:true]; |
| 287 | + [verify(amplitude) logEvent:@"Reminder Sent" withEventProperties:props withGroups:nil outOfSession:true]; |
288 | 288 | }); |
289 | 289 |
|
290 | 290 |
|
|
0 commit comments