Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DenTelezhkin committed May 27, 2021
1 parent 4179517 commit 56081d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Tests/CombineTestCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ class CombineTestCase: ProtocolStubbedTestCase {
.stub(with: .init(data: userData(id: 5, name: "Foo")))

let exp = expectation(description: "Stubs success")
request.publisher().sink { completion in
request.publisher().sink(receiveCompletion: { completion in
exp.fulfill()
} receiveValue: { user in
}) { user in
XCTAssertEqual(user.id, 5)
XCTAssertEqual(user.name, "Foo")
}.store(in: &tokens)
Expand Down

0 comments on commit 56081d1

Please sign in to comment.