package search_test

import (
	"context"
	"testing"

	"apps/backend/internal/module/search"

	"github.com/stretchr/testify/require"
)

func TestST_10_PlatformSearch(t *testing.T) {
	c := &search.FakeClient{}
	hits, err := c.Search(context.Background(), "plat-exa", "threads", 2)
	require.NoError(t, err)
	require.Len(t, hits, 2)
}

func TestST_11_ByokSearch(t *testing.T) {
	c := &search.FakeClient{}
	hits, err := c.Search(context.Background(), "member-exa", "query", 1)
	require.NoError(t, err)
	require.NotEmpty(t, hits)
}
