mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(kaak): add trusted server switcher and channel tree
This commit is contained in:
1 parent
17fb27b89a
commit
b13bdf1eb2
24 files changed
+733
-514
No files matched your search
@@ -101,3 +101,18 @@ test("skin quick-server projection uses the TeamSpeak name and public icon while
|
||||
assert.equal(server.icon, icon);
|
||||
assert.equal(JSON.stringify(server).includes("shanghai.example"), false);
|
||||
});
|
||||
|
||||
test("skin quick-server projection does not expose a network target used as the TeamSpeak name", () => {
|
||||
const projection = createSkinPluginQuickServerProjection(() => "opaque-target-name");
|
||||
const [server] = projection.project([{
|
||||
id: "current.example:9987",
|
||||
address: "current.example:9987",
|
||||
label: "current.example:9987",
|
||||
serverName: "server.example.invalid:9987",
|
||||
isFavorite: true,
|
||||
}], () => true);
|
||||
|
||||
assert.equal(server.label, "Favorite 1");
|
||||
assert.equal(server.monogram, "F");
|
||||
assert.equal(JSON.stringify(server).includes("server.example.invalid"), false);
|
||||
});
|
||||
Reference in new issue
Block a user