mirror of
https://github.com/gonzalezreal/swift-markdown-ui.git
synced 2026-01-18 17:41:20 +01:00
Use assertSnapshot(of:as:) (#286)
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
.border(Color.accentColor)
|
||||
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
.border(Color.accentColor)
|
||||
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
.markdownImageProvider(AssetImageProvider(bundle: .module))
|
||||
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
.border(Color.accentColor)
|
||||
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
.border(Color.accentColor)
|
||||
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@
|
||||
}
|
||||
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
}
|
||||
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
"""#
|
||||
}
|
||||
assertSnapshot(
|
||||
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user