test: stabilize channel mode and discussion coverage
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user