node tests: Add explicit test for wrong-case mentions.

The current code lets you enter normal mentions with
the wrong casing, but if you do a duplicate-name mention
with ids, it does enforce case.
This commit is contained in:
Steve Howell
2020-02-17 13:19:35 +00:00
committed by Tim Abbott
parent 479d07c264
commit 43c1c285f2

View File

@@ -308,7 +308,7 @@ run_test('marked', () => {
expected: '<ol>\n<li>an</li>\n<li>ordered </li>\n<li>list</li>\n</ol>'},
{input: '\n~~~quote\nquote this for me\n~~~\nthanks\n',
expected: '<blockquote>\n<p>quote this for me</p>\n</blockquote>\n<p>thanks</p>'},
{input: 'This is a @**Cordelia Lear** mention',
{input: 'This is a @**CordeLIA Lear** mention',
expected: '<p>This is a <span class="user-mention" data-user-id="101">@Cordelia Lear</span> mention</p>'},
{input: 'These @ @**** are not mentions',
expected: '<p>These @ @<em>**</em> are not mentions</p>'},
@@ -367,8 +367,8 @@ run_test('marked', () => {
expected: '<p><span class="user-mention" data-user-id="104">@Mark Twin</span> and <span class="user-mention" data-user-id="105">@Mark Twin</span> are out to confuse you.</p>'},
{input: '@**Invalid User|1234**',
expected: '<p>@**Invalid User|1234**</p>'},
{input: '@**Cordelia Lear|103** has a wrong user_id.',
expected: '<p>@**Cordelia Lear|103** has a wrong user_id.</p>'},
{input: '@**Cordelia LeAR|103** has a wrong user_id.',
expected: '<p>@**Cordelia LeAR|103** has a wrong user_id.</p>'},
{input: '@**Brother of Bobby|123** is really the full name.',
expected: '<p><span class="user-mention" data-user-id="106">@Brother of Bobby|123</span> is really the full name.</p>'},
{input: '@**Brother of Bobby|123|106**',