Skip to content

Commit 58b91f2

Browse files
authored
Tests page properties (#57)
1 parent cc52933 commit 58b91f2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Example/Tests/Tests.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,14 @@
167167
it(@"trackAllPagesV2", ^{
168168
integration = [[SEGAmplitudeIntegration alloc] initWithSettings:@{ @"trackAllPagesV2" : @true } andAmplitude:amplitude andAmpRevenue:amprevenue andAmpIdentify:identify];
169169

170-
SEGScreenPayload *payload = [[SEGScreenPayload alloc] initWithName:@"Shirts" properties:@{} context:@{} integrations:@{}];
170+
SEGScreenPayload *payload = [[SEGScreenPayload alloc] initWithName:@"Shirts" properties:@{ @"url" : @"seinfeld.wikia.com/wiki/The_Puffy_Shirt",
171+
@"Feed Type" : @"private" }
172+
context:@{}
173+
integrations:@{}];
171174
[integration screen:payload];
172-
[verify(amplitude) logEvent:@"Loaded a Screen" withEventProperties:@{ @"name" : @"Shirts" }];
175+
[verify(amplitude) logEvent:@"Loaded a Screen" withEventProperties:@{ @"name" : @"Shirts",
176+
@"url" : @"seinfeld.wikia.com/wiki/The_Puffy_Shirt",
177+
@"Feed Type" : @"private" }];
173178
});
174179

175180
});

0 commit comments

Comments
 (0)