update some tests
This commit is contained in:
parent
beaa70fe8b
commit
45f720e313
5 changed files with 5 additions and 44 deletions
|
@ -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");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue