Use assertSnapshot(of:as:) (#286)

This commit is contained in:
Guille Gonzalez
2023-12-31 15:57:00 +01:00
committed by GitHub
parent 4ffe814e8d
commit 5be879a636
2 changed files with 17 additions and 17 deletions

View File

@@ -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)
)
}
}

View File

@@ -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)
)
}
}