Appease the linter

This commit is contained in:
Travis Ralston 2018-10-26 10:22:18 -06:00
parent ef8c9246aa
commit c389540522
2 changed files with 31 additions and 31 deletions

View file

@ -39,7 +39,7 @@ export function makeGroupPermalink(groupId) {
export function encodeServerCandidates(candidates) {
if (!candidates) return '';
return `via=${candidates.map(c => encodeURIComponent(c)).join("&via=")}`
return `via=${candidates.map(c => encodeURIComponent(c)).join("&via=")}`;
}
export function pickServerCandidates(roomId) {

View file

@ -41,7 +41,7 @@ describe('matrix-to', function () {
peg.get().getRoom = () => {
return {
getJoinedMembers: () => [],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -63,9 +63,9 @@ describe('matrix-to', function () {
{
userId: "@alice:pl_95",
powerLevel: 95,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -101,9 +101,9 @@ describe('matrix-to', function () {
{
userId: "@charlie:third",
powerLevel: 0,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -132,9 +132,9 @@ describe('matrix-to', function () {
{
userId: "@charlie:third",
powerLevel: 0,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -151,9 +151,9 @@ describe('matrix-to', function () {
{
userId: "@alice:127.0.0.1",
powerLevel: 100,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -168,9 +168,9 @@ describe('matrix-to', function () {
{
userId: "@alice:[::1]",
powerLevel: 100,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -185,9 +185,9 @@ describe('matrix-to', function () {
{
userId: "@alice:127.0.0.1:8448",
powerLevel: 100,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -202,9 +202,9 @@ describe('matrix-to', function () {
{
userId: "@alice:[::1]:8448",
powerLevel: 100,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();
@ -219,9 +219,9 @@ describe('matrix-to', function () {
{
userId: "@alice:example.org:8448",
powerLevel: 100,
}
},
],
}
};
};
const pickedServers = pickServerCandidates("!somewhere:example.org");
expect(pickedServers).toExist();