@@ -66,12 +66,13 @@ - (void)testInit {
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: ^{
77
78
OCMVerify ([mock startWithToken: appToken invocationEvents: floatingButtonInvocationEvent]);
@@ -218,6 +219,15 @@ - (void)testSetReproStepsMode {
218
219
OCMVerify ([mock setReproStepsMode: reproStepsMode]);
219
220
}
220
221
222
+ - (void )testSetCodePushVersion {
223
+ id mock = OCMClassMock ([Instabug class ]);
224
+ NSString *codePushLabel = @" v123" ;
225
+
226
+ OCMStub ([mock setCodePushVersion: codePushLabel]);
227
+ [self .instabugBridge setCodePushVersion: codePushLabel];
228
+ OCMVerify ([mock setCodePushVersion: codePushLabel]);
229
+ }
230
+
221
231
- (void )testSetSdkDebugLogsLevel {
222
232
id mock = OCMClassMock ([Instabug class ]);
223
233
IBGSDKDebugLogsLevel sdkDebugLogsLevel = IBGSDKDebugLogsLevelVerbose;
0 commit comments