Commit avant changement d'agent vers devstral
This commit is contained in:
@ -11,6 +11,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/mathieu/personotes/internal/i18n"
|
||||
"github.com/mathieu/personotes/internal/indexer"
|
||||
)
|
||||
|
||||
@ -32,7 +33,10 @@ func newTestHandler(t *testing.T, notesDir string) *Handler {
|
||||
t.Fatalf("impossible d'analyser les templates de test: %v", err)
|
||||
}
|
||||
|
||||
return NewHandler(notesDir, indexer.New(), tpl, log.New(io.Discard, "", 0))
|
||||
// Create a minimal translator for tests
|
||||
translator := i18n.New("en")
|
||||
|
||||
return NewHandler(notesDir, indexer.New(), tpl, log.New(io.Discard, "", 0), translator)
|
||||
}
|
||||
|
||||
func TestHandler_Search(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user