forked from mystiq/hydrogen-web
Add failing test for link ending with <
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
55b7c55efe
commit
2e657fbbbd
1 changed files with 6 additions and 0 deletions
|
@ -109,6 +109,12 @@ export function tests() {
|
||||||
|
|
||||||
"Link with unicode after fragment without path must linkify": assert => {
|
"Link with unicode after fragment without path must linkify": assert => {
|
||||||
testLink(assert, "https://foo.bar.com#\uD83D\uDE03");
|
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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue