Skip to content

Commit

Permalink
swift-custom-dump: downgrade to v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gilgtm committed Dec 3, 2024
1 parent cf28ea2 commit fd23f6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-custom-dump",
"state" : {
"revision" : "82645ec760917961cfa08c9c0c7104a57a0fa4b1",
"version" : "1.3.3"
"revision" : "3ce83179e5f0c83ad54c305779c6b438e82aaf1d",
"version" : "1.2.1"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.4.0"),
.package(url: "https://github.com/pointfreeco/swift-perception", from: "1.1.4"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.3.3"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump", from: "1.2.1"),
],
targets: [
// MARK: Workflow
Expand Down
14 changes: 5 additions & 9 deletions WorkflowTesting/Sources/RenderTesterResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,18 @@ extension RenderTesterResult where WorkflowType.State: Equatable {
/// and is expected to mutate it to match the new state.
@discardableResult
public func assertStateModifications(
_ modifications: (inout WorkflowType.State) throws -> Void,
fileID: StaticString = #fileID,
filePath: StaticString = #filePath,
file: StaticString = #file,
line: UInt = #line,
column: UInt = #column
_ modifications: (inout WorkflowType.State) throws -> Void
) rethrows -> RenderTesterResult<WorkflowType> {
var initialState = initialState
try modifications(&initialState)
expectNoDifference(
XCTAssertNoDifference(

Check warning on line 139 in WorkflowTesting/Sources/RenderTesterResult.swift

View workflow job for this annotation

GitHub Actions / tutorial

'XCTAssertNoDifference(_:_:_:file:line:)' is deprecated: renamed to 'expectNoDifference'
initialState,
state,
"Expected state does not match",
fileID: fileID,
filePath: filePath,
line: line,
column: column
file: file,
line: line
)
return self
}
Expand Down

0 comments on commit fd23f6a

Please sign in to comment.