mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2026-03-01 18:31:35 +00:00
fix #66
This commit is contained in:
parent
d4b869046e
commit
d285722ddf
2 changed files with 44 additions and 8 deletions
|
|
@ -132,5 +132,25 @@ tap.test("entire structure works", childTest => {
|
|||
"special characters"
|
||||
)
|
||||
|
||||
// email address
|
||||
childTest.same(
|
||||
structure("someaddress@gmail.com"),
|
||||
[
|
||||
{type: "text", text: "someaddress@gmail.com"}
|
||||
],
|
||||
"email address"
|
||||
)
|
||||
|
||||
// email address + username
|
||||
childTest.same(
|
||||
structure("someaddress@gmail.com @gmail.com"),
|
||||
[
|
||||
{type: "text", text: "someaddress@gmail.com "},
|
||||
{type: "user", text: "@gmail.com", user: "gmail.com"},
|
||||
{type: "text", text: ""}
|
||||
],
|
||||
"email address"
|
||||
)
|
||||
|
||||
childTest.end()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue