Skip to content

Commit cc68757

Browse files
committed
slightly improved highlight integration test to show of both ways to get to your highlight
1 parent b86d5c9 commit cc68757

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/Nest.Tests.Integration/Integration/HighlightTests.cs

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ public void TestHighlight()
4343
Assert.NotNull(highlights);
4444
Assert.NotNull(highlights["content"]);
4545
Assert.Greater(highlights["content"].Highlights.Count(), 0);
46+
47+
highlights = result.DocumentsWithMetaData.First().Highlight;
48+
Assert.NotNull(highlights);
49+
Assert.NotNull(highlights["content"]);
50+
Assert.Greater(highlights["content"].Highlights.Count(), 0);
4651
}
4752

4853
[Test]

0 commit comments

Comments
 (0)