1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

lint & quote style

This commit is contained in:
David Baker
2015-11-12 12:14:13 +00:00
parent 588870b479
commit 14a9f6c444
2 changed files with 4 additions and 5 deletions

View File

@@ -19,9 +19,8 @@ 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 '';
}

View File

@@ -21,7 +21,7 @@ describe("ContentRepo", function() {
it("should return the empty string HTTP URLs by default", function() {
var httpUrl = "http://example.com/image.jpeg";
expect(ContentRepo.getHttpUriForMxc(baseUrl, httpUrl)).toEqual('');
expect(ContentRepo.getHttpUriForMxc(baseUrl, httpUrl)).toEqual("");
});
it("should return a download URL if no width/height/resize are specified",
@@ -33,7 +33,7 @@ describe("ContentRepo", function() {
});
it("should return the empty string for null input", function() {
expect(ContentRepo.getHttpUriForMxc(null)).toEqual('');
expect(ContentRepo.getHttpUriForMxc(null)).toEqual("");
});
it("should return a thumbnail URL if a width/height/resize is specified",