Files
story/internal/saas/consent_withdrawal_test.go
T

20 lines
524 B
Go

package saas
import "testing"
func TestConsentWithdrawalConversationImpact(t *testing.T) {
for _, consentType := range []string{
ConsentTranscriptStorage,
ConsentRawAudioStorage,
ConsentStoryExtraction,
ConsentPersonalMemory,
} {
if !consentWithdrawalStopsConversation(consentType) {
t.Fatalf("live conversation consent %q did not trigger a stop", consentType)
}
}
if consentWithdrawalStopsConversation(ConsentFamilySharing) {
t.Fatal("family sharing withdrawal should not interrupt live audio")
}
}