https://github.com/remirobert/asyncdisplaykit-snapshottests
ASDisplayNode extension, for generating a test node, to perform snapshot testing with AsyncDisplayKit (Texture) easily.
https://github.com/remirobert/asyncdisplaykit-snapshottests
Last synced: 30 days ago
JSON representation
ASDisplayNode extension, for generating a test node, to perform snapshot testing with AsyncDisplayKit (Texture) easily.
- Host: GitHub
- URL: https://github.com/remirobert/asyncdisplaykit-snapshottests
- Owner: remirobert
- License: mit
- Created: 2017-08-31T20:31:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T21:28:32.000Z (almost 9 years ago)
- Last Synced: 2025-01-11T06:13:19.765Z (over 1 year ago)
- Language: Objective-C
- Size: 1.05 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AsyncDisplayKit-SnapshotTests
ASDisplayNode extension, for generating a test node, to perform snapshot testing with AsyncDisplayKit (Texture) easily.
```Swift
func testWithFixWidth() {
let node = TextNode(text: "A snapshot test case.")
//create a test node.
//The child node, will automatically fits to the layout, corresponding to the size passed.
let textNode = node.testNode(sizeRange: CGSize(width: 100, height: CGFloat.infinity))
//verify your view
FBSnapshotVerifyView(textNode.view)
}
```