Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and github-actions[bot] committed Feb 29, 2024
1 parent 59f5eec commit 88a46fb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class RecursionTests: XCTestCase {
$0.rows.append(Nested.State(id: UUID(0)))
}

await store.send(\.rows[id: UUID(0)].addRowButtonTapped) {
await store.send(\.rows[id:UUID(0)].addRowButtonTapped) {
$0.rows[id: UUID(0)]?.rows.append(Nested.State(id: UUID(1)))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class ReusableComponentsFavoritingTests: XCTestCase {
)
}

await store.send(\.episodes[id: UUID(0)].favorite.buttonTapped) {
await store.send(\.episodes[id:UUID(0)].favorite.buttonTapped) {
$0.episodes[id: UUID(0)]?.isFavorite = true
}
await clock.advance(by: .seconds(1))
Expand Down Expand Up @@ -62,7 +62,7 @@ final class ReusableComponentsFavoritingTests: XCTestCase {
Episodes(favorite: { _, _ in throw FavoriteError() })
}

await store.send(\.episodes[id: UUID(0)].favorite.buttonTapped) {
await store.send(\.episodes[id:UUID(0)].favorite.buttonTapped) {
$0.episodes[id: UUID(0)]?.isFavorite = true
}

Expand All @@ -72,7 +72,7 @@ final class ReusableComponentsFavoritingTests: XCTestCase {
}
}

await store.send(\.episodes[id: UUID(0)].favorite.alert.dismiss) {
await store.send(\.episodes[id:UUID(0)].favorite.alert.dismiss) {
$0.episodes[id: UUID(0)]?.alert = nil
$0.episodes[id: UUID(0)]?.isFavorite = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ final class UIKitCaseStudiesTests: XCTestCase {
CounterList()
}

await store.send(\.counters[id: firstState.id].incrementButtonTapped) {
await store.send(\.counters[id:firstState.id].incrementButtonTapped) {
$0.counters[id: firstState.id]?.count = 1
}
await store.send(\.counters[id: firstState.id].decrementButtonTapped) {
await store.send(\.counters[id:firstState.id].decrementButtonTapped) {
$0.counters[id: firstState.id]?.count = 0
}

await store.send(\.counters[id: secondState.id].incrementButtonTapped) {
await store.send(\.counters[id:secondState.id].incrementButtonTapped) {
$0.counters[id: secondState.id]?.count = 1
}
await store.send(\.counters[id: secondState.id].decrementButtonTapped) {
await store.send(\.counters[id:secondState.id].decrementButtonTapped) {
$0.counters[id: secondState.id]?.count = 0
}

await store.send(\.counters[id: thirdState.id].incrementButtonTapped) {
await store.send(\.counters[id:thirdState.id].incrementButtonTapped) {
$0.counters[id: thirdState.id]?.count = 1
}
await store.send(\.counters[id: thirdState.id].decrementButtonTapped) {
await store.send(\.counters[id:thirdState.id].decrementButtonTapped) {
$0.counters[id: thirdState.id]?.count = 0
}
}
Expand Down
6 changes: 3 additions & 3 deletions Examples/Todos/TodosTests/TodosTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ final class TodosTests: XCTestCase {
$0.continuousClock = self.clock
}

await store.send(\.todos[id: UUID(0)].isComplete, true) {
await store.send(\.todos[id:UUID(0)].isComplete, true) {
$0.todos[id: UUID(0)]?.isComplete = true
}
await self.clock.advance(by: .milliseconds(500))
await store.send(\.todos[id: UUID(0)].isComplete, false) {
await store.send(\.todos[id:UUID(0)].isComplete, false) {
$0.todos[id: UUID(0)]?.isComplete = false
}
await self.clock.advance(by: .seconds(1))
Expand Down Expand Up @@ -337,7 +337,7 @@ final class TodosTests: XCTestCase {
await store.send(\.filter, .completed) {
$0.filter = .completed
}
await store.send(\.todos[id: UUID(1)].description, "Did this already") {
await store.send(\.todos[id:UUID(1)].description, "Did this already") {
$0.todos[id: UUID(1)]?.description = "Did this already"
}
}
Expand Down

0 comments on commit 88a46fb

Please sign in to comment.