Skip to content

Commit

Permalink
Update GREYIdlingResourcePrettyPrint.m
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNatan authored Jul 9, 2017
1 parent fe5e978 commit fb8235e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions detox/ios/Detox/GREYIdlingResourcePrettyPrint.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,8 @@
NSDictionary* _prettyPrintJSTimerObservationIdlingResource(WXJSTimerObservationIdlingResource* jsTimer)
{
NSMutableDictionary* rv = [NSMutableDictionary new];
rv[@"javascriptTimerIDs"] = [jsTimer valueForKeyPath:@"observations.objectEnumerator.allObjects.@unionOfObjects.observedTimers"];
rv[@"prettyPrint"] = [NSString stringWithFormat:@"Javascript Timers Ids: %@", [rv[@"javascriptTimerIDs"] componentsJoinedByString:@", "]];

rv[@"javascriptTimerIDs"] = [[jsTimer valueForKeyPath:@"observations.objectEnumerator.allObjects.@distinctUnionOfArrays.observedTimers"] sortedArrayUsingSelector:@selector(compare:)];
rv[@"prettyPrint"] = [NSString stringWithFormat:@"Javascript Timers Ids: %@", [rv[@"javascriptTimerIDs"] componentsJoinedByString:@", "]];
return rv;
}

Expand Down

0 comments on commit fb8235e

Please sign in to comment.