Reformat code

This commit is contained in:
世界
2026-02-08 18:23:42 +08:00
parent f765bf1e3b
commit a86dfc26d1
42 changed files with 163 additions and 98 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ final class SnapshotTests: XCTestCase {
app.launch()
}
func test01Dashboard() throws {
func test01Dashboard() {
#if os(macOS)
if app.outlines.staticTexts["Dashboard"].exists {
app.outlines.staticTexts["Dashboard"].click()
@@ -20,7 +20,7 @@ final class SnapshotTests: XCTestCase {
snapshot("01_Dashboard")
}
func test02Logs() throws {
func test02Logs() {
#if os(iOS)
if app.tabBars.buttons["Logs"].exists {
app.tabBars.buttons["Logs"].firstMatch.tap()
@@ -47,7 +47,7 @@ final class SnapshotTests: XCTestCase {
snapshot("02_Logs")
}
func test03Settings() throws {
func test03Settings() {
#if os(iOS)
if app.tabBars.buttons["Settings"].exists {
app.tabBars.buttons["Settings"].firstMatch.tap()
+2 -2
View File
@@ -22,7 +22,7 @@ final class UITests: XCTestCase {
}
@MainActor
func testExample() throws {
func testExample() {
// UI tests must launch the application that they test.
let app = XCUIApplication()
app.launch()
@@ -31,7 +31,7 @@ final class UITests: XCTestCase {
}
@MainActor
func testLaunchPerformance() throws {
func testLaunchPerformance() {
// This measures how long it takes to launch your application.
measure(metrics: [XCTApplicationLaunchMetric()]) {
XCUIApplication().launch()
+1 -1
View File
@@ -17,7 +17,7 @@ final class UITestsLaunchTests: XCTestCase {
}
@MainActor
func testLaunch() throws {
func testLaunch() {
let app = XCUIApplication()
app.launch()