13 lines
350 B
Swift
13 lines
350 B
Swift
import Elementary
|
|
@preconcurrency import SnapshotTesting
|
|
|
|
public extension Snapshotting where Value == (any HTML), Format == String {
|
|
static var html: Snapshotting {
|
|
var snapshotting = SimplySnapshotting.lines
|
|
.pullback { (html: any HTML) in html.renderFormatted() }
|
|
|
|
snapshotting.pathExtension = "html"
|
|
return snapshotting
|
|
}
|
|
}
|