File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
example/ios/InstabugSampleTests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -62,18 +62,20 @@ - (void)testSetEnabled {
62
62
}
63
63
64
64
- (void )testInit {
65
- id <InstabugCPTestProtocol> mock = OCMClassMock ([Instabug class ]);
65
+ id mock = OCMClassMock ([Instabug class ]);
66
66
IBGInvocationEvent floatingButtonInvocationEvent = IBGInvocationEventFloatingButton;
67
67
NSString *appToken = @" app_token" ;
68
68
NSArray *invocationEvents = [NSArray arrayWithObjects: [NSNumber numberWithInteger: floatingButtonInvocationEvent], nil ];
69
+ NSString *codePushLabel = @" v123" ;
69
70
IBGSDKDebugLogsLevel sdkDebugLogsLevel = IBGSDKDebugLogsLevelDebug;
70
71
71
72
XCTestExpectation *expectation = [self expectationWithDescription: @" Testing [Instabug init]" ];
72
73
73
74
OCMStub ([mock startWithToken: appToken invocationEvents: floatingButtonInvocationEvent]);
74
- [self .instabugBridge init: appToken invocationEvents: invocationEvents debugLogsLevel: sdkDebugLogsLevel];
75
+ [self .instabugBridge init: appToken invocationEvents: invocationEvents codePushLabel: codePushLabel debugLogsLevel: sdkDebugLogsLevel];
75
76
76
77
[[NSRunLoop mainRunLoop ] performBlock: ^{
78
+ OCMVerify ([mock setCodePushVersion: codePushLabel]);
77
79
OCMVerify ([mock startWithToken: appToken invocationEvents: floatingButtonInvocationEvent]);
78
80
[expectation fulfill ];
79
81
}];
You can’t perform that action at this time.
0 commit comments