2026-04-28 23:09:50 +08:00
|
|
|
package builders
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
2026-08-21 00:41:07 +08:00
|
|
|
"code.tczkiot.com/wlw/ai-agent/internal/models"
|
2026-04-28 23:09:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestBuildNotificationListReturnsEmptySlice(t *testing.T) {
|
|
|
|
|
results := BuildNotificationList([]models.Notification{})
|
|
|
|
|
|
|
|
|
|
if results == nil {
|
|
|
|
|
t.Fatalf("expected empty slice, got nil")
|
|
|
|
|
}
|
|
|
|
|
if len(results) != 0 {
|
|
|
|
|
t.Fatalf("expected empty slice, got %d items", len(results))
|
|
|
|
|
}
|
|
|
|
|
}
|