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