1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-01 18:31:35 +00:00
This commit is contained in:
Cadence Ember 2020-05-19 19:03:03 +12:00
parent d4b869046e
commit d285722ddf
No known key found for this signature in database
GPG key ID: 128B99B1B74A6412
2 changed files with 44 additions and 8 deletions

View file

@ -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()
})