Skip to content

Commit 5be879a

Browse files
authored
Use assertSnapshot(of:as:) (#286)
1 parent 4ffe814 commit 5be879a

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Tests/MarkdownUITests/MarkdownTableTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
.border(Color.accentColor)
2929

3030
assertSnapshot(
31-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
31+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
3232
)
3333
}
3434

@@ -51,7 +51,7 @@
5151
.border(Color.accentColor)
5252

5353
assertSnapshot(
54-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
54+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
5555
)
5656
}
5757

@@ -77,7 +77,7 @@
7777
.markdownImageProvider(AssetImageProvider(bundle: .module))
7878

7979
assertSnapshot(
80-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
80+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
8181
)
8282
}
8383

@@ -98,7 +98,7 @@
9898
.border(Color.accentColor)
9999

100100
assertSnapshot(
101-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
101+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
102102
)
103103
}
104104

@@ -121,7 +121,7 @@
121121
.border(Color.accentColor)
122122

123123
assertSnapshot(
124-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
124+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
125125
)
126126
}
127127

@@ -151,7 +151,7 @@
151151
}
152152

153153
assertSnapshot(
154-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
154+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
155155
)
156156
}
157157

@@ -185,7 +185,7 @@
185185
}
186186

187187
assertSnapshot(
188-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
188+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
189189
)
190190
}
191191
}

Tests/MarkdownUITests/ThemeGitHubTests.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"""#
2727
}
2828
assertSnapshot(
29-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
29+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
3030
)
3131
}
3232

@@ -49,7 +49,7 @@
4949
"""#
5050
}
5151
assertSnapshot(
52-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
52+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
5353
)
5454
}
5555

@@ -65,7 +65,7 @@
6565
"""#
6666
}
6767
assertSnapshot(
68-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
68+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
6969
)
7070
}
7171

@@ -82,7 +82,7 @@
8282
"""#
8383
}
8484
assertSnapshot(
85-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
85+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
8686
)
8787
}
8888

@@ -97,7 +97,7 @@
9797
"""#
9898
}
9999
assertSnapshot(
100-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
100+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
101101
)
102102
}
103103

@@ -119,7 +119,7 @@
119119
"""#
120120
}
121121
assertSnapshot(
122-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
122+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
123123
)
124124
}
125125

@@ -133,7 +133,7 @@
133133
"""#
134134
}
135135
assertSnapshot(
136-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
136+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
137137
)
138138
}
139139

@@ -159,7 +159,7 @@
159159
"""#
160160
}
161161
assertSnapshot(
162-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
162+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
163163
)
164164
}
165165

@@ -180,7 +180,7 @@
180180
"""#
181181
}
182182
assertSnapshot(
183-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
183+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
184184
)
185185
}
186186

@@ -195,7 +195,7 @@
195195
"""#
196196
}
197197
assertSnapshot(
198-
matching: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
198+
of: view, as: .image(perceptualPrecision: perceptualPrecision, layout: layout)
199199
)
200200
}
201201
}

0 commit comments

Comments
 (0)