Skip to content

Commit

Permalink
Removed commented out tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sharekris committed Jul 28, 2015
1 parent b2dc396 commit b9d621b
Showing 1 changed file with 0 additions and 87 deletions.
87 changes: 0 additions & 87 deletions iOS Tests/Integrations/Kahuna/SEGKahunaIntegrationTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -192,91 +192,4 @@ - (void)testScreenWithNoTrackAllPagesSettings
[verifyCount(_kahunaClassMock, never()) trackEvent:anything()];
}



/*
- (void)testAlias
{
[given([_kahunaMock distinctId]) willReturn:@"foo"];
[_integration alias:@"bar" options:nil];
[verifyCount(_mixpanelMock, times(1)) createAlias:@"bar" forDistinctID:@"foo"];
}
- (void)testIdentifyWithPeople
{
[_integration setSettings:@{
@"token" : @"foo",
@"people" : @1
}];
[_integration identify:@"foo" traits:@{ @"bar" : @"baz" } options:@{}];
[verifyCount(_mixpanelMock, times(1)) identify:@"foo"];
[verifyCount(_mixpanelMock, times(1)) registerSuperProperties:@{ @"bar" : @"baz" }];
[verifyCount(_mixpanelPeopleMock, times(1)) set:@{ @"bar" : @"baz" }];
}
- (void)testIdentifyWithTraits
{
[_integration identify:@"foo"
traits:@{
@"firstName" : @"bar",
@"lastName" : @"baz",
@"createdAt" : @"qaz",
@"lastSeen" : @"foobar",
@"email" : @"barbaz",
@"name" : @"bazqaz",
@"username" : @"foobarbaz",
@"phone" : @"barbazqaz"
}
options:@{}];
[verifyCount(_mixpanelMock, times(1)) identify:@"foo"];
[verifyCount(_mixpanelMock, times(1)) registerSuperProperties:@{
@"$first_name" : @"bar",
@"$last_name" : @"baz",
@"$created" : @"qaz",
@"$last_seen" : @"foobar",
@"$email" : @"barbaz",
@"$name" : @"bazqaz",
@"$username" : @"foobarbaz",
@"$phone" : @"barbazqaz"
}];
}
- (void)testTrack
{
[_integration track:@"foo" properties:@{ @"bar" : @"baz" } options:nil];
[verifyCount(_mixpanelMock, times(1)) track:@"foo" properties:@{ @"bar" : @"baz" }];
}
- (void)testTrackWithRevenue
{
[_integration setSettings:@{ @"people" : @1 }];
[_integration track:@"foo" properties:@{ @"revenue" : @10 } options:nil];
[verifyCount(_mixpanelPeopleMock, times(1)) trackCharge:@10];
}
- (void)testTrackWithIncrement
{
[_integration setSettings:@{ @"people" : @1,
@"increments" : @[ @"foo" ] }];
[_integration track:@"foo" properties:@{} options:nil];
[verifyCount(_mixpanelPeopleMock, times(1)) increment:@"foo" by:@1];
[verifyCount(_mixpanelPeopleMock, times(1)) set:@"Last foo" to:anything()];
}
*/

@end

0 comments on commit b9d621b

Please sign in to comment.