feat: Begins hvac system performance
This commit is contained in:
22
Sources/HTMLSnapshotTesting/HTMLSnapshotTesting.swift
Normal file
22
Sources/HTMLSnapshotTesting/HTMLSnapshotTesting.swift
Normal file
@@ -0,0 +1,22 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
public extension Snapshotting where Value == String, Format == String {
|
||||
static var html: Snapshotting {
|
||||
var snapshotting = SimplySnapshotting.lines
|
||||
.pullback { $0 }
|
||||
|
||||
snapshotting.pathExtension = "html"
|
||||
return snapshotting
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user