Skip to content

Your app looks AI-generated. Vincent Van Gogh noticed. An agent skill that finds and fixes AI-looking UI and UX in mobile apps, web apps, and websites.

test(fixtures): cover tracked-caps-label SwiftUI branch (#58)

Nguyễn Tuấn Anhf00f5c9e7697
diff --git a/test/detect.test.js b/test/detect.test.js
index c929226..61b0537 100644
--- a/test/detect.test.js
+++ b/test/detect.test.js
@@ -26,7 +26,7 @@ test("React Native slop is caught", () => {
test("SwiftUI slop is caught", () => {
const found = rulesIn("Dashboard.swift");
- for (const id of ["unvirtualized-list", "status-dot", "fixed-text-size", "slop-gradient", "glow-shadow", "back-gesture", "drawer-nav", "safe-area-off"]) {
+ for (const id of ["unvirtualized-list", "status-dot", "fixed-text-size", "slop-gradient", "glow-shadow", "back-gesture", "drawer-nav", "safe-area-off", "tracked-caps-label"]) {
assert.ok(found.has(id), `missing ${id}`);
}
});
diff --git a/test/fixtures/slop/Dashboard.swift b/test/fixtures/slop/Dashboard.swift
index e056a62..c4deb82 100644
--- a/test/fixtures/slop/Dashboard.swift
+++ b/test/fixtures/slop/Dashboard.swift
@@ -5,6 +5,7 @@ struct Dashboard: View {
var body: some View {
ScrollView {
VStack {
+ Text("NEW").textCase(.uppercase).tracking(2)
ForEach(rows) { row in
HStack {
Circle().fill(.green).frame(width: 8, height: 8)