Files
Texture/Tests/ASDisplayNode+OCMock.m
Adlai Holler 6b3f8f8ad7 Add support for keeping letting cell nodes update to new view models when reloaded. #trivial (#357)
* Add support for skipping reload if node decides it is compatible with new view model also

* Sort things right

* Put the order back

* No need for redundant expectation

* Fix license header

* Fix comment
2017-06-13 10:10:37 -07:00

32 lines
720 B
Objective-C

//
// ASDisplayNode+OCMock.m
// Texture
//
// Copyright (c) 2017-present, Pinterest, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
#import <AsyncDisplayKit/AsyncDisplayKit.h>
/**
* For some reason, when creating partial mocks of nodes, OCMock fails to find
* these class methods that it swizzled!
*/
@implementation ASDisplayNode (OCMock)
+ (Class)ocmock_replaced_viewClass
{
return [_ASDisplayView class];
}
+ (Class)ocmock_replaced_layerClass
{
return [_ASDisplayLayer class];
}
@end