Skip to content
Snippets Groups Projects
Commit 81b57cf0 authored by Josh Brooks's avatar Josh Brooks
Browse files

Add more coverage

parent 56d1aba7
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,22 @@ func TestSearch_InvalidArgs(t *testing.T) {
}
func TestSearch_InvalidArgs_Email(t *testing.T) {
// Load a user
TestRegisterHappyPath(t)
// NOTE: This is kind of hard, since we can't see the response and search
// does not modify data we can check
// TODO: Monkeypatch send so we can verify? -- this is tested in integration,
// so.. low priority.
msgs := []string{
"NotEMAIL rick@elixxir.io",
}
msg := NewMessage(msgs[0], cmixproto.Type_UDB_SEARCH)
sl.Hear(msg, false)
}
// Test invalid search type
func TestSearch_Invalid_Type(t *testing.T) {
fingerprint := "8oKh7TYG4KxQcBAymoXPBHSD/uga9pX3Mn/jKhvcD8M="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment