✨ Add initial share commandline handling

This commit is contained in:
2020-10-18 10:33:29 +02:00
parent f39d8c3e48
commit b48b7f58e1
4 changed files with 179 additions and 42 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ func TestStoreShareHandling(t *testing.T) {
}
t.Run("cannot add login if user doesn't exist", func(t *testing.T) {
if err := store.AddLogin(share3, user1.Username, Login{"foo", ""}); err == nil {
if err := store.AddLogin(share3, user1.Username, Login{"foo", "", false}); err == nil {
t.Errorf("an error should have been returned")
} else if err != ErrUserNotFound {
t.Errorf("wrong error has been returned: %v", err)