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 {
188188 NSString *name = @" this is my name" ;
189189
190190 OCMStub ([mock identifyUserWithEmail: email name: name]);
191- [self .instabugBridge identifyUser: email name: name id :nil ];
191+ [self .instabugBridge identifyUser: email name: name userId :nil ];
192192 OCMVerify ([mock identifyUserWithID: nil email: email name: name]);
193193}
194194
195195- (void )testIdentifyUserWithID {
196196 id mock = OCMClassMock ([Instabug class ]);
197197 NSString *email = @" em@il.com" ;
198198 NSString *name = @" this is my name" ;
199- NSString *userID = @" this is my id" ;
199+ NSString *userId = @" this is my id" ;
200200
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]);
204204}
205205
206206- (void )testLogOut {
Original file line number Diff line number Diff line change 4949
5050- (void )setString : (NSString *)value toKey : (NSString *)key ;
5151
52- - (void )identifyUser : (NSString *)email name : (NSString *)name id : (nullable NSString *)id ;
52+ - (void )identifyUser : (NSString *)email name : (NSString *)name userId : (nullable NSString *)id ;
5353
5454- (void )logOut ;
5555
Original file line number Diff line number Diff line change @@ -191,8 +191,8 @@ - (dispatch_queue_t)methodQueue {
191191 [Instabug clearFileAttachments ];
192192}
193193
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];
196196}
197197
198198RCT_EXPORT_METHOD (logOut) {
You can’t perform that action at this time.
0 commit comments