Skip to content

Commit

Permalink
Add snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
carson-katri committed Jul 9, 2021
1 parent 7e2e9c7 commit d75e6a8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Tests/TokamakStaticHTMLTests/RenderingTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,25 @@ final class RenderingTests: XCTestCase {
timeout: defaultSnapshotTimeout
)
}

func testScaleEffect() {
assertSnapshot(
matching: ZStack {
Circle()
.fill(Color.red)
.frame(width: 50, height: 50)
.scaleEffect(2)
.opacity(0.5)
Circle()
.fill(Color.blue)
.frame(width: 50, height: 50)
.zIndex(1)
.opacity(0.5)
},
as: .image(size: .init(width: 100, height: 100)),
timeout: defaultSnapshotTimeout
)
}
}

#endif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d75e6a8

Please sign in to comment.