import { describe, it, expect } from 'vitest';
import { canArmDraw, shouldDisarmDraw } from './drawCue';

describe('draw cue policy', () => {
	it('arms only in edit mode', () => {
		expect(canArmDraw('edit')).toBe(true);
		expect(canArmDraw('read')).toBe(false);
	});

	it('disarms in every mode except edit', () => {
		expect(shouldDisarmDraw('read')).toBe(true);
		expect(shouldDisarmDraw('edit')).toBe(false);
	});
});
