Skip to content

Commit

Permalink
fix TestingSyncUpForm.tutorial (#3091)
Browse files Browse the repository at this point in the history
* fix TestingSyncUpForm.tutorial

* revert
  • Loading branch information
hmhv committed May 18, 2024
1 parent bac0d10 commit 9664c75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@
feature has a dependency, and we will provide the key path `\.uuid` to denote the dependence
on UUID generation.

@Code(name: "SyncUpFormTests.swift", file: TestingSyncUpForm-02-code-0004.swift, previousFile: TestingSyncUpForm-02-code-0004-previous.swift)
@Code(name: "SyncUpForm.swift", file: TestingSyncUpForm-02-code-0004.swift, previousFile: TestingSyncUpForm-02-code-0004-previous.swift)
}

@Step {
Then, in the reducer's logic, any place we reached out to the uncontrolled UUID generator,
for example `Attendee.ID()`, we will instead use the `uuid` dependency.

@Code(name: "SyncUpFormTests.swift", file: TestingSyncUpForm-02-code-0005.swift)
@Code(name: "SyncUpForm.swift", file: TestingSyncUpForm-02-code-0005.swift)
}

With that one change, if you were to run the test suite again you would get the same test
Expand Down

0 comments on commit 9664c75

Please sign in to comment.