From 1c606aaaf4d13e6703a6816ad6174717c52366b0 Mon Sep 17 00:00:00 2001 From: yogevbd Date: Thu, 1 Aug 2019 02:23:30 +0300 Subject: [PATCH] Fix unit --- .../RNNotificationsTests/RNNotificationEventHandlerTests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNNotifications/RNNotificationsTests/RNNotificationEventHandlerTests.m b/RNNotifications/RNNotificationsTests/RNNotificationEventHandlerTests.m index 609be7c..1bdaca9 100644 --- a/RNNotifications/RNNotificationsTests/RNNotificationEventHandlerTests.m +++ b/RNNotifications/RNNotificationsTests/RNNotificationEventHandlerTests.m @@ -62,7 +62,7 @@ [[_mockedNotificationCenter expect] postNotificationName:RNNotificationReceivedForeground object:[OCMArg any] userInfo:[OCMArg checkWithBlock:^BOOL(id obj) { return ([[obj valueForKey:@"identifier"] isEqualToString:@"id"] && - [[[obj valueForKey:@"payload"] valueForKey:@"extraKey"] isEqualToString:@"extraValue"]); + [[[obj valueForKey:@"data"] valueForKey:@"extraKey"] isEqualToString:@"extraValue"]); }]]; [_uut didReceiveForegroundNotification:notification withCompletionHandler:testBlock]; [_mockedNotificationCenter verify]; -- 2.26.2