Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit c69e18b

Browse files
committed
refactored test
1 parent 002b3b3 commit c69e18b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

AsyncDisplayKitTests/ASVideoNodeTests.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ - (void)testVideoNodeReplacesAVPlayerItemWhenNewURLIsSet {
3636
- (void)testVideoNodeDoesNotReplaceAVPlayerItemWhenSameURLIsSet {
3737
ASVideoNode *videoNode = [[ASVideoNode alloc] init];
3838
videoNode.interfaceState = ASInterfaceStateFetchData;
39+
AVAsset *asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
3940

40-
videoNode.asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
41+
videoNode.asset = asset;
4142
AVPlayerItem *item = [videoNode currentItem];
4243

43-
videoNode.asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
44+
videoNode.asset = asset;
4445
AVPlayerItem *secondItem = [videoNode currentItem];
4546

4647
XCTAssertEqualObjects(item, secondItem);

0 commit comments

Comments
 (0)