Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
revert formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhieddine-El-Kaissi committed Jul 12, 2024
1 parent 072f5c1 commit 982b49c
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions Tests/ThumbprintTests/Snapshot/Components/ButtonRowTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class ButtonRowTest: SnapshotTestCase {
"short": ("Title", "Title"),
"long": ("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam pretium ornare magna et tristique.", "Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio."),
"short-primary": ("Title", "Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio."),
"short-secondary": ("Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio.", "Title")
"short-secondary": ("Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio.", "Title"),
]
private let distributions: [ButtonRow.Distribution] = [
.equal,
.emphasis,
.minimal
.minimal,
]

@MainActor func testAll() {
Expand Down
6 changes: 3 additions & 3 deletions Tests/ThumbprintTests/Snapshot/Components/ButtonTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ class ButtonTest: SnapshotTestCase {
"Caution": (theme: .caution, size: .default),
"Solid": (theme: .solid, size: .default),
"Text": (theme: .text, size: .text),
"Link": (theme: .link, size: .text)
"Link": (theme: .link, size: .text),
]

private let sizes: [String: (size: Button.Size, exampleTheme: Button.Theme)] = [
"default": (size: .default, exampleTheme: .primary),
"small": (size: .small, exampleTheme: .primary),
"text": (size: .text, exampleTheme: .link)
"text": (size: .text, exampleTheme: .link),
]

private let icons: [String: Button.Icon?] = [
"no icon": nil,
"leading": Button.Icon(.leading, image: Icon.notificationAlertsInfoFilledMedium.image),
"trailing": Button.Icon(.trailing, image: Icon.navigationCaretRightMedium.image),
"exclusive": Button.Icon(.exclusive, image: Icon.navigationCaretRightMedium.image)
"exclusive": Button.Icon(.exclusive, image: Icon.navigationCaretRightMedium.image),
]

private var button: Button!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class DropdownTest: SnapshotTestCase {
dropdown = Dropdown(optionTitles: [
"Thing 1",
"Thing 2",
"The Cat in the Hat Knows a Lot About That!"
"The Cat in the Hat Knows a Lot About That!",
])
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/ThumbprintTests/Snapshot/Components/FooterTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class FooterTest: SnapshotTestCase {
"short": ("Title", "Title"),
"long": ("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam pretium ornare magna et tristique.", "Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio."),
"short-primary": ("Title", "Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio."),
"short-secondary": ("Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio.", "Title")
"short-secondary": ("Etiam egestas, metus id dignissim ultrices, odio enim imperdiet est, placerat ullamcorper augue ligula sed odio.", "Title"),
]

@MainActor func testSafeArea() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import UIKit
class IconButtonTest: SnapshotTestCase {
private let themes: [String: IconButton.Theme] = [
"default": .default,
"dark": .dark
"dark": .dark,
]

@MainActor func testIconButton() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ class NavigationBarTest: SnapshotTestCase {
"default": .default,
"scrollEdgeShadowless": .scrollEdgeShadowless,
"shadowless": .shadowless,
"transparent": .transparent
"transparent": .transparent,
]

private let contentStyles: [String: NavigationBar.ContentStyle] = [
"default": .default,
"light": .light
"light": .light,
]

@MainActor func testAppearances() {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThumbprintTests/Snapshot/Components/PillTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class PillTest: SnapshotTestCase {
("Gray", Icon.notificationAlertsInfoFilledMedium.image, .gray),
("Blue", Icon.notificationAlertsInfoFilledMedium.image, .blue),
("Yellow", Icon.notificationAlertsInfoFilledMedium.image, .yellow),
("Purple", Icon.notificationAlertsInfoFilledMedium.image, .purple)
("Purple", Icon.notificationAlertsInfoFilledMedium.image, .purple),
]

documentationPills.forEach { pillSpec in
Expand Down
4 changes: 2 additions & 2 deletions Tests/ThumbprintTests/Snapshot/Components/ShadowTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ShadowTest: SnapshotTestCase {
Shadow.shadow100,
Shadow.shadow200,
Shadow.shadow300,
Shadow.shadow400
Shadow.shadow400,
]

for shadow in shadows {
Expand Down Expand Up @@ -50,7 +50,7 @@ class ShadowTest: SnapshotTestCase {
Shadow.roundedShadow100,
Shadow.roundedShadow200,
Shadow.roundedShadow300,
Shadow.roundedShadow400
Shadow.roundedShadow400,
]

for shadow in shadows {
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThumbprintTests/Snapshot/Components/TabBarTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class TabBarTest: SnapshotTestCase {
let items = [
UITabBarItem(title: "Left", image: Icon.notificationAlertsInfoFilledMedium.image, selectedImage: nil),
UITabBarItem(title: "Middle", image: Icon.notificationAlertsInfoFilledMedium.image, selectedImage: nil),
UITabBarItem(title: "Right", image: Icon.notificationAlertsInfoFilledMedium.image, selectedImage: nil)
UITabBarItem(title: "Right", image: Icon.notificationAlertsInfoFilledMedium.image, selectedImage: nil),
]
items.forEach { TabBar.configure(tabBarItem: $0) }
tabBar.items = items
Expand Down
4 changes: 2 additions & 2 deletions Tests/ThumbprintTests/Snapshot/Shared/SnapshotTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,13 @@ open class SnapshotTestCase: XCTestCase {
if size.cgSize.width >= 768 {
collection = UITraitCollection(traitsFrom: [
collection,
UITraitCollection(horizontalSizeClass: .regular)
UITraitCollection(horizontalSizeClass: .regular),
])
}
if size.cgSize.height >= 1024 {
collection = UITraitCollection(traitsFrom: [
collection,
UITraitCollection(verticalSizeClass: .regular)
UITraitCollection(verticalSizeClass: .regular),
])
}
Font.traitCollectionOverrideForTesting = collection
Expand Down
2 changes: 1 addition & 1 deletion Tests/ThumbprintTests/Unit/Components/RadioGroupTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class RadioGroupTest: UnitTestCase {
Radio(text: "Two"),
Radio(text: "Thre"),
Radio(text: "Four"),
Radio(text: "Five")
Radio(text: "Five"),
]

radios.enumerated().forEach { index, radio in
Expand Down

0 comments on commit 982b49c

Please sign in to comment.