package index_test

import (
	"testing"

	"archivmail/internal/index"
)

func TestUnknownBackend(t *testing.T) {
	_, err := index.New(t.TempDir(), 10, "elasticsearch")
	if err == nil {
		t.Error("expected error for unknown backend")
	}
}
