mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
M000: normalize configuration and TeamSpeak adapter
This commit is contained in:
1 parent
8d9b8d5627
commit
960be106bb
18 files changed
+587
-161
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { describe, it } from "node:test";
|
||||
import { canAcceptSession, MAX_ACTIVE_SESSIONS } from "../src/constants.js";
|
||||
|
||||
describe("session safety limit", () => {
|
||||
it("uses the fixed 100-session product limit", () => {
|
||||
assert.equal(MAX_ACTIVE_SESSIONS, 100);
|
||||
assert.equal(canAcceptSession(99), true);
|
||||
assert.equal(canAcceptSession(100), false);
|
||||
assert.equal(canAcceptSession(101), false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user