[Tests] Check if crash if null
This commit is contained in:
parent
740ac0dc9c
commit
d5326772d7
|
|
@ -43,5 +43,12 @@ void main() {
|
||||||
width: 50, height: 50, method: ThumbnailMethod.scale),
|
width: 50, height: 50, method: ThumbnailMethod.scale),
|
||||||
"${client.homeserver}/_matrix/media/r0/thumbnail/exampleserver.abc/abcdefghijklmn?width=50&height=50&method=scale");
|
"${client.homeserver}/_matrix/media/r0/thumbnail/exampleserver.abc/abcdefghijklmn?width=50&height=50&method=scale");
|
||||||
});
|
});
|
||||||
|
test("Not crashing if null", () async {
|
||||||
|
Client client = Client("testclient");
|
||||||
|
client.homeserver = "https://testserver.abc";
|
||||||
|
final MxContent content = MxContent(null);
|
||||||
|
expect(content.getDownloadLink(client),
|
||||||
|
"${client.homeserver}/_matrix/media/r0/download/");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue