Skip to content

Commit

Permalink
search tests. WIP needs input
Browse files Browse the repository at this point in the history
  • Loading branch information
danFbach committed Jan 14, 2025
1 parent 0aae289 commit f800298
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Meilisearch.Tests/SearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -554,5 +554,14 @@ public async Task CustomSearchWithRankingScoreThreshold()
movies.Hits.First().Id.Should().Be("13");
movies.Hits.First().Name.Should().Be("Harry Potter");
}

[Fact]
public async Task CustomSearchWithLocalizedAttribute()
{
var searchQuery = new SearchQuery { Locales = new[] { "eng" } };
var movies = await _nestedIndex.SearchAsync<MovieWithInfo>("a wizard movie", searchQuery);

movies.Hits.Count.Should().Be(4);
}
}
}

0 comments on commit f800298

Please sign in to comment.