diff options
Diffstat (limited to 'utils/markdown/text_range_test.go')
-rw-r--r-- | utils/markdown/text_range_test.go | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/utils/markdown/text_range_test.go b/utils/markdown/text_range_test.go index 25c13c40d..de3dd0985 100644 --- a/utils/markdown/text_range_test.go +++ b/utils/markdown/text_range_test.go @@ -86,9 +86,14 @@ func TestTextRanges(t *testing.T) { ExpectedValues: []string{"& test"}, }, "notcharref2": { - Markdown: "&mattermost;", - ExpectedRanges: []Range{{0, 12}}, - ExpectedValues: []string{"&mattermost;"}, + Markdown: "this is &mattermost;", + ExpectedRanges: []Range{{0, 20}}, + ExpectedValues: []string{"this is &mattermost;"}, + }, + "standalone-ampersand": { + Markdown: "Hello & World", + ExpectedRanges: []Range{{0, 13}}, + ExpectedValues: []string{"Hello & World"}, }, } { t.Run(name, func(t *testing.T) { |