update some tests

This commit is contained in:
zoe 2022-06-28 22:19:46 +02:00
parent beaa70fe8b
commit 45f720e313
5 changed files with 5 additions and 44 deletions

View file

@ -24,9 +24,8 @@ void validUsernameTest() {
void usernameToUrlTest() {
test("try valid transforming usernames into a url", () {
expect(urlFromUsername(name: "hello@example.com"),
Uri.parse("https://example.com"));
expect(urlFromUsername(name: "h@e.c"), Uri.parse("https://e.c"));
expect(urlFromUsername(name: "hello@example.com"), "example.com");
expect(urlFromUsername(name: "h@e.c"), "e.c");
});
}