Skip to content

Commit

Permalink
Use assertSnapshot(of:as:) (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezreal authored Dec 31, 2023
1 parent 4ffe814 commit 5be879a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions Tests/MarkdownUITests/MarkdownTableTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
.border(Color.accentColor)

assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -51,7 +51,7 @@
.border(Color.accentColor)

assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

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

Expand All @@ -98,7 +98,7 @@
.border(Color.accentColor)

assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -121,7 +121,7 @@
.border(Color.accentColor)

assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand Down Expand Up @@ -151,7 +151,7 @@
}

assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand Down Expand Up @@ -185,7 +185,7 @@
}

assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}
}
Expand Down
20 changes: 10 additions & 10 deletions Tests/MarkdownUITests/ThemeGitHubTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -49,7 +49,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -65,7 +65,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -82,7 +82,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -97,7 +97,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -119,7 +119,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -133,7 +133,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -159,7 +159,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -180,7 +180,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}

Expand All @@ -195,7 +195,7 @@
"""#
}
assertSnapshot(
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
)
}
}
Expand Down

0 comments on commit 5be879a

Please sign in to comment.