mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 20:12:52 +08:00
feat: split TeamSpeak address and port inputs
This commit is contained in:
1 parent
bf1158aff2
commit
3ec9ab497a
7 files changed
+144
-42
No files matched your search
@@ -30,6 +30,14 @@ describe("legacy config migration", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("accepts the address#port form during migration", () => {
|
||||
assert.deepEqual(migrateConfig({ tsHost: "voice.example.com#9988" }), {
|
||||
tsHost: "voice.example.com",
|
||||
tsPort: 9988,
|
||||
tsServerPassword: "",
|
||||
});
|
||||
});
|
||||
|
||||
it("falls back safely for malformed legacy targets", () => {
|
||||
assert.deepEqual(migrateConfig({ tsHost: "bad host", tsPort: 0 }), {
|
||||
tsHost: "127.0.0.1",
|
||||
|
||||
Reference in new issue
Block a user