Skip to content

Commit f55ae3c

Browse files
committed
move test to AppKit
1 parent d1a5518 commit f55ae3c

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

Tests/TextDiffTests/NSTextDiffSnapshotTests.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ final class NSTextDiffSnapshotTests: XCTestCase {
5454
)
5555
}
5656

57+
@MainActor
58+
func testNarrowWidthWrapping() {
59+
assertNSTextDiffSnapshot(
60+
original: sampleOriginalSentence,
61+
updated: sampleUpdatedSentence,
62+
mode: .token,
63+
size: CGSize(width: 220, height: 180),
64+
testName: "narrow_width_wrapping()"
65+
)
66+
}
67+
5768
@MainActor
5869
func testCustomStyleSpacingStrikethrough() {
5970
var style = TextDiffStyle.default

Tests/TextDiffTests/TextDiffSnapshotTests.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,6 @@ final class TextDiffSnapshotTests: XCTestCase {
6565
)
6666
}
6767

68-
@MainActor
69-
func testNarrowWidthWrapping() {
70-
assertTextDiffSnapshot(
71-
original: sampleOriginalSentence,
72-
updated: sampleUpdatedSentence,
73-
mode: .token,
74-
size: CGSize(width: 220, height: 180),
75-
testName: "narrow_width_wrapping()"
76-
)
77-
}
78-
7968
@MainActor
8069
func testCustomStyleSpacingStrikethrough() {
8170
var style = TextDiffStyle.default

Tests/TextDiffTests/__Snapshots__/TextDiffSnapshotTests/narrow_width_wrapping.1.png renamed to Tests/TextDiffTests/__Snapshots__/NSTextDiffSnapshotTests/narrow_width_wrapping.1.png

File renamed without changes.

0 commit comments

Comments
 (0)