Created
September 28, 2017 10:34
-
-
Save piotrbernad/9d23744f602e4d0c8888cb6ec2cf26e3 to your computer and use it in GitHub Desktop.
TestingKeychain.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // key keychain instance | |
| let keychain = MockedKeychain() | |
| // set some email | |
| try? KeychainAccessors.email | |
| .set(keychain: keychain, value: "[email protected]") | |
| // get stored email | |
| let storedEmail = try? KeychainAccessors.email | |
| .get(keychain: keychain) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment