Files
ナムandCollective Developer f31214f5ce feat(channel-memory): enhance passive extraction for Discord (#1361)
* fix(channels): persist pending history under instance names

* feat(channel-memory): add run-all extraction workflow

* feat(discord): resolve passive memory channel titles

* feat(web): enhance passive memory controls

* docs(channel-memory): document extraction endpoints

---------

Co-authored-by: Collective Developer <man@collective.dev>
2026-07-06 11:51:07 +07:00

28 lines
788 B
Go

package channels
import "testing"
func TestSetNameSyncsPersistentHistoryChannelName(t *testing.T) {
base := NewBaseChannel(TypeDiscord, nil, nil)
history := &PendingHistory{channelName: TypeDiscord}
base.SetGroupHistory(history)
base.SetName("co-assistant-2-0")
if history.channelName != "co-assistant-2-0" {
t.Fatalf("history channelName = %q, want %q", history.channelName, "co-assistant-2-0")
}
}
func TestSetGroupHistorySyncsExistingChannelName(t *testing.T) {
base := NewBaseChannel(TypeDiscord, nil, nil)
base.SetName("co-assistant-2-0")
history := &PendingHistory{channelName: TypeDiscord}
base.SetGroupHistory(history)
if history.channelName != "co-assistant-2-0" {
t.Fatalf("history channelName = %q, want %q", history.channelName, "co-assistant-2-0")
}
}