Add failing test for link ending with <

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-05-12 15:56:33 +05:30
parent 55b7c55efe
commit 2e657fbbbd

View file

@ -109,6 +109,12 @@ export function tests() {
"Link with unicode after fragment without path must linkify": assert => {
testLink(assert, "https://foo.bar.com#\uD83D\uDE03");
},
"Link ends with <": assert => {
const link = "https://matrxi.org";
const out = [{ type: "link", text: link }, { type: "text", text: "<" }];
test(assert, link, out);
}
};
}