diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Clean up the whole tree
Diffstat (limited to 'tests/extensions/test-link-commits.lua')
| -rw-r--r-- | tests/extensions/test-link-commits.lua | 15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 5 insertions, 10 deletions
diff --git a/tests/extensions/test-link-commits.lua b/tests/extensions/test-link-commits.lua index 6c6d28d..07b2fdb 100644 --- a/tests/extensions/test-link-commits.lua +++ b/tests/extensions/test-link-commits.lua @@ -15,22 +15,19 @@ local function render(text) end local out, ret = render("see #123 for details") -h.contains("issue mark becomes a link", out, - "<a href='https://bugs.example.com/?bug=123'>#123</a>") +h.contains("issue mark becomes a link", out, "<a href='https://bugs.example.com/?bug=123'>#123</a>") h.contains("text around the link survives", out, "see ") h.contains("text after the link survives", out, " for details") h.equals("close answers zero", ret, 0) out = render("fixed in deadbee") -h.contains("seven hex characters link", out, - "<a href='./?id=deadbee'>deadbee</a>") +h.contains("seven hex characters link", out, "<a href='./?id=deadbee'>deadbee</a>") out = render("fixed in deadbe") h.excludes("six hex characters stay text", out, "<a") out = render("fixed in 1234567") -h.contains("an all digit run still links", out, - "<a href='./?id=1234567'>1234567</a>") +h.contains("an all digit run still links", out, "<a href='./?id=1234567'>1234567</a>") local sha1 = string.rep("0123456789abcdef", 2) .. "01234567" out = render("commit " .. sha1) @@ -58,14 +55,12 @@ h.excludes("the overlapped hash is dropped", out, "./?id=") out = render("#12 and cafebabe12") h.contains("both rules fire on one message", out, "?bug=12'>#12</a>") -h.contains("the object link also fires", out, - "<a href='./?id=cafebabe12'>cafebabe12</a>") +h.contains("the object link also fires", out, "<a href='./?id=cafebabe12'>cafebabe12</a>") -- One request is delivered as several writes, and a match split across two of -- them has to be seen whole. out = h.run({}, { "see #45", "6 and be done" }) -h.contains("a match split across writes still links", out, - "?bug=456'>#456</a>") +h.contains("a match split across writes still links", out, "?bug=456'>#456</a>") out, ret = render("") h.equals("an empty message stays empty", out, "") |
