mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix tests that failed due to merging an old PR (#2217)
This commit is contained in:
@@ -2006,14 +2006,14 @@ static bool stringContainsPointer(NSString *description, id p) {
|
||||
|
||||
- (void)testThatOnDidLoadThrowsIfCalledOnLoaded
|
||||
{
|
||||
ASTestDisplayNode *node = [[[ASTestDisplayNode alloc] init] autorelease];
|
||||
ASTestDisplayNode *node = [[ASTestDisplayNode alloc] init];
|
||||
[node view];
|
||||
XCTAssertThrows([node onDidLoad:^(ASDisplayNode * _Nonnull node) { }]);
|
||||
}
|
||||
|
||||
- (void)testThatOnDidLoadWorks
|
||||
{
|
||||
ASTestDisplayNode *node = [[[ASTestDisplayNode alloc] init] autorelease];
|
||||
ASTestDisplayNode *node = [[ASTestDisplayNode alloc] init];
|
||||
NSMutableArray *calls = [NSMutableArray array];
|
||||
[node onDidLoad:^(ASTestDisplayNode * _Nonnull node) {
|
||||
[calls addObject:@0];
|
||||
|
||||
Reference in New Issue
Block a user