Skip to content

Commit c32db4c

Browse files
committed
Fix tests
1 parent 67b8d92 commit c32db4c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Tests/RenderingTests/LinkTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ final class LinkTests: XCTestCase {
2020
func testComplexBody() throws {
2121
try assertMatch(#"""
2222
<lvn-link destination="https://apple.com">
23-
<hstack>
23+
<h-stack>
2424
<image system-name="link" />
2525
<text>Click the link</text>
26-
</hstack>
26+
</h-stack>
2727
</lvn-link>
2828
"""#) {
2929
Link(destination: URL(string: "https://apple.com")!) {

Tests/RenderingTests/ShapeTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ final class ShapeTests: XCTestCase {
1818
}
1919

2020
func testRoundedRectangle() throws {
21-
try assertMatch(#"<roundedrectangle corner-radius="5" />"#, size: .init(width: 100, height: 50)) {
21+
try assertMatch(#"<rounded-rectangle corner-radius="5" />"#, size: .init(width: 100, height: 50)) {
2222
RoundedRectangle(cornerRadius: 5)
2323
}
24-
try assertMatch(#"<roundedrectangle corner-width="5" corner-height="10" />"#, size: .init(width: 100, height: 50)) {
24+
try assertMatch(#"<rounded-rectangle corner-width="5" corner-height="10" />"#, size: .init(width: 100, height: 50)) {
2525
RoundedRectangle(cornerSize: .init(width: 5, height: 10))
2626
}
27-
try assertMatch(#"<roundedrectangle corner-width="5" corner-radius="15" />"#, size: .init(width: 100, height: 50)) {
27+
try assertMatch(#"<rounded-rectangle corner-width="5" corner-radius="15" />"#, size: .init(width: 100, height: 50)) {
2828
RoundedRectangle(cornerSize: .init(width: 5, height: 15))
2929
}
30-
try assertMatch(#"<roundedrectangle corner-height="5" corner-radius="15" />"#, size: .init(width: 100, height: 50)) {
30+
try assertMatch(#"<rounded-rectangle corner-height="5" corner-radius="15" />"#, size: .init(width: 100, height: 50)) {
3131
RoundedRectangle(cornerSize: .init(width: 15, height: 5))
3232
}
33-
try assertMatch(#"<roundedrectangle corner-radius="10" style="continuous" />"#, size: .init(width: 100, height: 50)) {
33+
try assertMatch(#"<rounded-rectangle corner-radius="10" style="continuous" />"#, size: .init(width: 100, height: 50)) {
3434
RoundedRectangle(cornerRadius: 10, style: .continuous)
3535
}
3636
}
@@ -60,7 +60,7 @@ final class ShapeTests: XCTestCase {
6060
}
6161

6262
func testContainerRelativeShape() throws {
63-
try assertMatch(#"<containerrelativeshape />"#) {
63+
try assertMatch(#"<container-relative-shape />"#) {
6464
ContainerRelativeShape()
6565
}
6666
}

0 commit comments

Comments
 (0)