Files
story/internal/saas/consent_withdrawal_test.go
T

20 lines
524 B
Go
Raw Normal View History

2026-08-26 06:41:07 +08:00
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")
}
}