Skip to content

Commit 14f6677

Browse files
coenttbgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 37e91dc commit 14f6677

File tree

114 files changed

+16626
-16626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+16626
-16626
lines changed

Tests/CSSPointFreeHTML Tests/AccentColor Tests.swift

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ import PointFreeHTMLTestSupport
1414
import Testing
1515

1616
@Suite(
17-
"AccentColor Tests",
18-
.snapshots(record: nil)
17+
"AccentColor Tests",
18+
.snapshots(record: nil)
1919
)
2020
struct AccentColorTests {
21-
@Test("HTML element renders with accent-color properly")
22-
func htmlElementWithAccentColorRendersCorrectly() {
23-
assertInlineSnapshot(
24-
of: HTMLDocument {
25-
div.accentColor(.red)
26-
},
27-
as: .html
28-
) {
29-
"""
21+
@Test("HTML element renders with accent-color properly")
22+
func htmlElementWithAccentColorRendersCorrectly() {
23+
assertInlineSnapshot(
24+
of: HTMLDocument {
25+
div.accentColor(.red)
26+
},
27+
as: .html
28+
) {
29+
"""
3030
<!doctype html>
3131
<html>
3232
<head>
@@ -41,18 +41,18 @@ struct AccentColorTests {
4141
</body>
4242
</html>
4343
"""
44-
}
4544
}
45+
}
4646

47-
@Test("HTML element renders with accent-color using hex color properly")
48-
func htmlElementWithAccentColorHexRendersCorrectly() {
49-
assertInlineSnapshot(
50-
of: HTMLDocument {
51-
div.accentColor(.color(.hex("FF0000")))
52-
},
53-
as: .html
54-
) {
55-
"""
47+
@Test("HTML element renders with accent-color using hex color properly")
48+
func htmlElementWithAccentColorHexRendersCorrectly() {
49+
assertInlineSnapshot(
50+
of: HTMLDocument {
51+
div.accentColor(.color(.hex("FF0000")))
52+
},
53+
as: .html
54+
) {
55+
"""
5656
<!doctype html>
5757
<html>
5858
<head>
@@ -67,18 +67,18 @@ struct AccentColorTests {
6767
</body>
6868
</html>
6969
"""
70-
}
7170
}
71+
}
7272

73-
@Test("HTML accent-color with global value renders properly")
74-
func htmlAccentColorWithGlobalValueRendersCorrectly() {
75-
assertInlineSnapshot(
76-
of: HTMLDocument {
77-
div.accentColor(.inherit)
78-
},
79-
as: .html
80-
) {
81-
"""
73+
@Test("HTML accent-color with global value renders properly")
74+
func htmlAccentColorWithGlobalValueRendersCorrectly() {
75+
assertInlineSnapshot(
76+
of: HTMLDocument {
77+
div.accentColor(.inherit)
78+
},
79+
as: .html
80+
) {
81+
"""
8282
<!doctype html>
8383
<html>
8484
<head>
@@ -93,18 +93,18 @@ struct AccentColorTests {
9393
</body>
9494
</html>
9595
"""
96-
}
9796
}
97+
}
9898

99-
@Test("HTML accent-color with media query renders properly")
100-
func htmlAccentColorWithMediaQueryRendersCorrectly() {
101-
assertInlineSnapshot(
102-
of: HTMLDocument {
103-
div.accentColor(.color(.hex("FF0000")), media: .print)
104-
},
105-
as: .html
106-
) {
107-
"""
99+
@Test("HTML accent-color with media query renders properly")
100+
func htmlAccentColorWithMediaQueryRendersCorrectly() {
101+
assertInlineSnapshot(
102+
of: HTMLDocument {
103+
div.accentColor(.color(.hex("FF0000")), media: .print)
104+
},
105+
as: .html
106+
) {
107+
"""
108108
<!doctype html>
109109
<html>
110110
<head>
@@ -121,18 +121,18 @@ struct AccentColorTests {
121121
</body>
122122
</html>
123123
"""
124-
}
125124
}
125+
}
126126

127-
@Test("HTML accent-color with pseudo-class renders properly")
128-
func htmlAccentColorWithPseudoClassRendersCorrectly() {
129-
assertInlineSnapshot(
130-
of: HTMLDocument {
131-
div.accentColor(.color(.hex("FF0000")), pseudo: .hover)
132-
},
133-
as: .html
134-
) {
135-
"""
127+
@Test("HTML accent-color with pseudo-class renders properly")
128+
func htmlAccentColorWithPseudoClassRendersCorrectly() {
129+
assertInlineSnapshot(
130+
of: HTMLDocument {
131+
div.accentColor(.color(.hex("FF0000")), pseudo: .hover)
132+
},
133+
as: .html
134+
) {
135+
"""
136136
<!doctype html>
137137
<html>
138138
<head>
@@ -147,18 +147,18 @@ struct AccentColorTests {
147147
</body>
148148
</html>
149149
"""
150-
}
151150
}
151+
}
152152

153-
@Test("HTML accent-color with prefix renders properly")
154-
func htmlAccentColorWithPrefixRendersCorrectly() {
155-
assertInlineSnapshot(
156-
of: HTMLDocument {
157-
div.accentColor(.color(.hex("FF0000")), selector: "my-component")
158-
},
159-
as: .html
160-
) {
161-
"""
153+
@Test("HTML accent-color with prefix renders properly")
154+
func htmlAccentColorWithPrefixRendersCorrectly() {
155+
assertInlineSnapshot(
156+
of: HTMLDocument {
157+
div.accentColor(.color(.hex("FF0000")), selector: "my-component")
158+
},
159+
as: .html
160+
) {
161+
"""
162162
<!doctype html>
163163
<html>
164164
<head>
@@ -173,6 +173,6 @@ struct AccentColorTests {
173173
</body>
174174
</html>
175175
"""
176-
}
177176
}
177+
}
178178
}

Tests/CSSPointFreeHTML Tests/AlignContent Tests.swift

Lines changed: 72 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ import PointFreeHTMLTestSupport
1414
import Testing
1515

1616
@Suite(
17-
"AlignContent Tests",
18-
.snapshots(record: nil)
17+
"AlignContent Tests",
18+
.snapshots(record: nil)
1919
)
2020
struct AlignContentTests {
21-
@Test("HTML element renders with align-content properly")
22-
func htmlElementWithAlignContentRendersCorrectly() {
23-
assertInlineSnapshot(
24-
of: HTMLDocument {
25-
div.alignContent(.center)
26-
},
27-
as: .html
28-
) {
29-
"""
21+
@Test("HTML element renders with align-content properly")
22+
func htmlElementWithAlignContentRendersCorrectly() {
23+
assertInlineSnapshot(
24+
of: HTMLDocument {
25+
div.alignContent(.center)
26+
},
27+
as: .html
28+
) {
29+
"""
3030
<!doctype html>
3131
<html>
3232
<head>
@@ -41,18 +41,18 @@ struct AlignContentTests {
4141
</body>
4242
</html>
4343
"""
44-
}
4544
}
45+
}
4646

47-
@Test("HTML element renders with align-content flex-start value")
48-
func htmlElementWithAlignContentFlexStartRendersCorrectly() {
49-
assertInlineSnapshot(
50-
of: HTMLDocument {
51-
div.alignContent(.flexStart)
52-
},
53-
as: .html
54-
) {
55-
"""
47+
@Test("HTML element renders with align-content flex-start value")
48+
func htmlElementWithAlignContentFlexStartRendersCorrectly() {
49+
assertInlineSnapshot(
50+
of: HTMLDocument {
51+
div.alignContent(.flexStart)
52+
},
53+
as: .html
54+
) {
55+
"""
5656
<!doctype html>
5757
<html>
5858
<head>
@@ -67,18 +67,18 @@ struct AlignContentTests {
6767
</body>
6868
</html>
6969
"""
70-
}
7170
}
71+
}
7272

73-
@Test("HTML align-content with global value renders properly")
74-
func htmlAlignContentWithGlobalValueRendersCorrectly() {
75-
assertInlineSnapshot(
76-
of: HTMLDocument {
77-
div.alignContent(.inherit)
78-
},
79-
as: .html
80-
) {
81-
"""
73+
@Test("HTML align-content with global value renders properly")
74+
func htmlAlignContentWithGlobalValueRendersCorrectly() {
75+
assertInlineSnapshot(
76+
of: HTMLDocument {
77+
div.alignContent(.inherit)
78+
},
79+
as: .html
80+
) {
81+
"""
8282
<!doctype html>
8383
<html>
8484
<head>
@@ -93,18 +93,18 @@ struct AlignContentTests {
9393
</body>
9494
</html>
9595
"""
96-
}
9796
}
97+
}
9898

99-
@Test("HTML align-content with media query renders properly")
100-
func htmlAlignContentWithMediaQueryRendersCorrectly() {
101-
assertInlineSnapshot(
102-
of: HTMLDocument {
103-
div.alignContent(.center, media: .print)
104-
},
105-
as: .html
106-
) {
107-
"""
99+
@Test("HTML align-content with media query renders properly")
100+
func htmlAlignContentWithMediaQueryRendersCorrectly() {
101+
assertInlineSnapshot(
102+
of: HTMLDocument {
103+
div.alignContent(.center, media: .print)
104+
},
105+
as: .html
106+
) {
107+
"""
108108
<!doctype html>
109109
<html>
110110
<head>
@@ -121,18 +121,18 @@ struct AlignContentTests {
121121
</body>
122122
</html>
123123
"""
124-
}
125124
}
125+
}
126126

127-
@Test("HTML align-content with pseudo-class renders properly")
128-
func htmlAlignContentWithPseudoClassRendersCorrectly() {
129-
assertInlineSnapshot(
130-
of: HTMLDocument {
131-
div.alignContent(.spaceAround, pseudo: .hover)
132-
},
133-
as: .html
134-
) {
135-
"""
127+
@Test("HTML align-content with pseudo-class renders properly")
128+
func htmlAlignContentWithPseudoClassRendersCorrectly() {
129+
assertInlineSnapshot(
130+
of: HTMLDocument {
131+
div.alignContent(.spaceAround, pseudo: .hover)
132+
},
133+
as: .html
134+
) {
135+
"""
136136
<!doctype html>
137137
<html>
138138
<head>
@@ -147,18 +147,18 @@ struct AlignContentTests {
147147
</body>
148148
</html>
149149
"""
150-
}
151150
}
151+
}
152152

153-
@Test("HTML align-content with prefix renders properly")
154-
func htmlAlignContentWithPrefixRendersCorrectly() {
155-
assertInlineSnapshot(
156-
of: HTMLDocument {
157-
div.alignContent(.spaceBetween, selector: "my-component")
158-
},
159-
as: .html
160-
) {
161-
"""
153+
@Test("HTML align-content with prefix renders properly")
154+
func htmlAlignContentWithPrefixRendersCorrectly() {
155+
assertInlineSnapshot(
156+
of: HTMLDocument {
157+
div.alignContent(.spaceBetween, selector: "my-component")
158+
},
159+
as: .html
160+
) {
161+
"""
162162
<!doctype html>
163163
<html>
164164
<head>
@@ -173,18 +173,18 @@ struct AlignContentTests {
173173
</body>
174174
</html>
175175
"""
176-
}
177176
}
177+
}
178178

179-
@Test("HTML align-content with stretch value renders properly")
180-
func htmlAlignContentWithStretchValueRendersCorrectly() {
181-
assertInlineSnapshot(
182-
of: HTMLDocument {
183-
div.alignContent(.stretch)
184-
},
185-
as: .html
186-
) {
187-
"""
179+
@Test("HTML align-content with stretch value renders properly")
180+
func htmlAlignContentWithStretchValueRendersCorrectly() {
181+
assertInlineSnapshot(
182+
of: HTMLDocument {
183+
div.alignContent(.stretch)
184+
},
185+
as: .html
186+
) {
187+
"""
188188
<!doctype html>
189189
<html>
190190
<head>
@@ -199,6 +199,6 @@ struct AlignContentTests {
199199
</body>
200200
</html>
201201
"""
202-
}
203202
}
203+
}
204204
}

0 commit comments

Comments
 (0)