You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
lint
This commit is contained in:
@@ -19,7 +19,9 @@ module.exports = {
|
||||
* for such URLs.
|
||||
* @return {string} The complete URL to the content.
|
||||
*/
|
||||
getHttpUriForMxc: function(baseUrl, mxc, width, height, resizeMethod, allowDirectLinks) {
|
||||
getHttpUriForMxc: function(
|
||||
baseUrl, mxc, width, height, resizeMethod, allowDirectLinks
|
||||
) {
|
||||
if (typeof mxc !== "string" || !mxc) {
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -13,7 +13,9 @@ describe("ContentRepo", function() {
|
||||
it("should do nothing to HTTP URLs when allowing direct links", function() {
|
||||
var httpUrl = "http://example.com/image.jpeg";
|
||||
expect(
|
||||
ContentRepo.getHttpUriForMxc(baseUrl, httpUrl, undefined, undefined, undefined, true)
|
||||
ContentRepo.getHttpUriForMxc(
|
||||
baseUrl, httpUrl, undefined, undefined, undefined, true
|
||||
)
|
||||
).toEqual(httpUrl);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user