Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

497 B
Raw Blame
import { describe, expect, it } from 'vitest';

import { shouldBlockUserFork } from '../components/chat/UserMessage';

describe('shouldBlockUserFork', () => {
  it('blocks same-turn steer user messages only while the session is running', () => {
    expect(shouldBlockUserFork(true, 'steer')).toBe(true);
    expect(shouldBlockUserFork(false, 'steer')).toBe(false);
    expect(shouldBlockUserFork(true, 'turn')).toBe(false);
    expect(shouldBlockUserFork(true, undefined)).toBe(false);
  });
});