File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
examples/default/ios/InstabugTests Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -188,19 +188,19 @@ - (void)testIdentifyUser {
188
188
NSString *name = @" this is my name" ;
189
189
190
190
OCMStub ([mock identifyUserWithEmail: email name: name]);
191
- [self .instabugBridge identifyUser: email name: name id :nil ];
191
+ [self .instabugBridge identifyUser: email name: name userId :nil ];
192
192
OCMVerify ([mock identifyUserWithID: nil email: email name: name]);
193
193
}
194
194
195
195
- (void )testIdentifyUserWithID {
196
196
id mock = OCMClassMock ([Instabug class ]);
197
197
NSString *email =
@" [email protected] " ;
198
198
NSString *name = @" this is my name" ;
199
- NSString *userID = @" this is my id" ;
199
+ NSString *userId = @" this is my id" ;
200
200
201
- OCMStub ([mock identifyUserWithID: userID email: email name: name]);
202
- [self .instabugBridge identifyUser: email name: name id: userID ];
203
- OCMVerify ([mock identifyUserWithID: userID email: email name: name]);
201
+ OCMStub ([mock identifyUserWithID: userId email: email name: name]);
202
+ [self .instabugBridge identifyUser: email name: name userId: userId ];
203
+ OCMVerify ([mock identifyUserWithID: userId email: email name: name]);
204
204
}
205
205
206
206
- (void )testLogOut {
Original file line number Diff line number Diff line change 49
49
50
50
- (void )setString : (NSString *)value toKey : (NSString *)key ;
51
51
52
- - (void )identifyUser : (NSString *)email name : (NSString *)name id : (nullable NSString *)id ;
52
+ - (void )identifyUser : (NSString *)email name : (NSString *)name userId : (nullable NSString *)id ;
53
53
54
54
- (void )logOut ;
55
55
Original file line number Diff line number Diff line change @@ -191,8 +191,8 @@ - (dispatch_queue_t)methodQueue {
191
191
[Instabug clearFileAttachments ];
192
192
}
193
193
194
- RCT_EXPORT_METHOD (identifyUser:(NSString *)email name:(NSString *)name id :(nullable NSString *)id ) {
195
- [Instabug identifyUserWithID: id email: email name: name];
194
+ RCT_EXPORT_METHOD (identifyUser:(NSString *)email name:(NSString *)name userId :(nullable NSString *)userId ) {
195
+ [Instabug identifyUserWithID: userId email: email name: name];
196
196
}
197
197
198
198
RCT_EXPORT_METHOD (logOut) {
You can’t perform that action at this time.
0 commit comments