test: stabilize channel mode and discussion coverage

This commit is contained in:
zhi
2026-04-02 06:18:16 +00:00
parent 4e0a24333e
commit b11c15d8c8
6 changed files with 113 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
import { describe, it, beforeEach, afterEach } from "node:test";
import assert from "node:assert";
import { enterMultiMessageMode, exitMultiMessageMode, isMultiMessageMode, setChannelShuffling, getChannelShuffling } from "../plugin/core/channel-modes.ts";
import { initTurnOrder, checkTurn, onNewMessage, resetTurn, setWaitingForHuman, isWaitingForHuman, onSpeakerDone } from "../plugin/turn-manager.ts";
import { initTurnOrder, checkTurn, getTurnDebugInfo, onNewMessage, resetTurn, setWaitingForHuman, isWaitingForHuman } from "../plugin/turn-manager.ts";
describe("Mode Compatibility Tests", () => {
const channelId = "test-channel";
@@ -72,6 +72,7 @@ describe("Mode Compatibility Tests", () => {
// In real implementation, mention override would be set via setMentionOverride function
// This test ensures the settings coexist properly
const state = getTurnDebugInfo(channelId);
assert.ok(state.hasTurnState);
assert.strictEqual(getChannelShuffling(channelId), true);
});
});