This commit is contained in:
Cadence Ember
2020-05-19 19:03:03 +12:00
parent d4b869046e
commit d285722ddf
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()
})