diff --git a/Tests/MarkdownUITests/MarkdownImageTests.swift b/Tests/MarkdownUITests/MarkdownImageTests.swift index 14e1950f..620e81c8 100644 --- a/Tests/MarkdownUITests/MarkdownImageTests.swift +++ b/Tests/MarkdownUITests/MarkdownImageTests.swift @@ -21,7 +21,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testRelativeImage() { @@ -49,7 +49,7 @@ ) ) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testImageLink() { @@ -66,7 +66,7 @@ .padding() .markdownImageProvider(AssetImageProvider(bundle: .module)) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testMultipleImages() throws { @@ -89,7 +89,7 @@ .padding() .markdownImageProvider(AssetImageProvider(bundle: .module)) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testMultipleImagesSize() throws { @@ -109,7 +109,7 @@ .padding() .markdownImageProvider(AssetImageProvider(bundle: .module)) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testColorScheme() { @@ -136,7 +136,7 @@ } .markdownImageProvider(AssetImageProvider(bundle: .module)) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } } #endif diff --git a/Tests/MarkdownUITests/MarkdownListTests.swift b/Tests/MarkdownUITests/MarkdownListTests.swift index 2efa2ec0..70ca9e59 100644 --- a/Tests/MarkdownUITests/MarkdownListTests.swift +++ b/Tests/MarkdownUITests/MarkdownListTests.swift @@ -19,7 +19,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testBulletedList() { @@ -36,7 +36,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testBulletedDashedList() { @@ -54,7 +54,7 @@ .padding() .markdownBulletedListMarker(.dash) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testNumberedList() { @@ -81,7 +81,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testRomanNumberedList() { @@ -103,7 +103,7 @@ .padding() .markdownNumberedListMarker(.lowerRoman) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testLooseList() { @@ -129,7 +129,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } } diff --git a/Tests/MarkdownUITests/MarkdownTests.swift b/Tests/MarkdownUITests/MarkdownTests.swift index 8a190f8d..df83e5b9 100644 --- a/Tests/MarkdownUITests/MarkdownTests.swift +++ b/Tests/MarkdownUITests/MarkdownTests.swift @@ -34,7 +34,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testCodeBlock() { @@ -60,7 +60,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testVerbatimHTML() { @@ -79,7 +79,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testOpenCodeBlock() { @@ -93,7 +93,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testParagraphs() { @@ -111,7 +111,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testCenteredParagraphs() { @@ -130,7 +130,7 @@ .padding() .multilineTextAlignment(.center) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testTrailingParagraphs() { @@ -149,7 +149,7 @@ .padding() .multilineTextAlignment(.trailing) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testSpacing() { @@ -171,7 +171,7 @@ .markdownMargin(bottom: .zero) } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testHeadings() { @@ -194,7 +194,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testThematicBreak() { @@ -220,7 +220,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testInlines() { @@ -250,7 +250,7 @@ .border(Color.accentColor) .padding() - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testInlinesStyling() { @@ -294,7 +294,7 @@ UnderlineStyle(.init(pattern: .dot)) } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } } #endif diff --git a/Tests/MarkdownUITests/ThemeDocCTests.swift b/Tests/MarkdownUITests/ThemeDocCTests.swift index 0bf5b923..648cc800 100644 --- a/Tests/MarkdownUITests/ThemeDocCTests.swift +++ b/Tests/MarkdownUITests/ThemeDocCTests.swift @@ -24,7 +24,7 @@ Use `git status` to list all new or modified files that haven't yet been committed. """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testHeadings() { @@ -45,7 +45,7 @@ Paragraph. """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testParagraph() { @@ -60,7 +60,7 @@ It was a bright cold day in April, and the clocks were striking thirteen. """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testBlockquote() { @@ -73,7 +73,7 @@ It was a bright cold day in April, and the clocks were striking thirteen. """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testCodeBlock() { @@ -93,7 +93,7 @@ It was a bright cold day in April, and the clocks were striking thirteen. """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testImage() throws { @@ -116,7 +116,7 @@ """# } .markdownImageProvider(AssetImageProvider(bundle: .module)) - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testList() { @@ -143,7 +143,7 @@ - [ ] An unfinished task """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testTable() throws { @@ -162,7 +162,7 @@ | `fast` | Moves faster than a hare. | """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } func testThematicBreak() { @@ -175,7 +175,7 @@ It was a bright cold day in April, and the clocks were striking thirteen. """# } - assertSnapshot(matching: view, as: .image(layout: layout)) + assertSnapshot(of: view, as: .image(layout: layout)) } }