15 lines
359 B
Go
15 lines
359 B
Go
package store
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/tinode/chat/server/store/types"
|
|
)
|
|
|
|
func TestValidUserPrivacyPatchAcceptsFriendVerificationOnly(t *testing.T) {
|
|
disabled := false
|
|
if !validUserPrivacyPatch(types.UserPrivacyPatch{FriendRequestVerification: &disabled}) {
|
|
t.Fatal("friend_request_verification should be a valid standalone privacy patch")
|
|
}
|
|
}
|