Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created July 14, 2020 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevencurtis/5b9aaa5d5d9092bf2b30a9cdbd438511 to your computer and use it in GitHub Desktop.
Save stevencurtis/5b9aaa5d5d9092bf2b30a9cdbd438511 to your computer and use it in GitHub Desktop.
viewmodeltest
let expect = expectation(description: #function)
lvm?.password = "test"
lvm?.validLengthPassword.sink(receiveValue: {res in
XCTAssertEqual(res, false)
expect.fulfill()
}).store(in: &cancellables)
waitForExpectations(timeout: 2.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment