import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { test } from "vitest";

const source = readFileSync(
	join(process.cwd(), "packages/coding-agent/src/core/keybindings.ts"),
	"utf-8",
);

test("default follow-up keybinding includes Alt+Enter and Ctrl+Enter", () => {
	const followUpDefault = source.match(/followUp:\s*\[([^\]]+)\]/)?.[1] ?? "";
	assert.match(followUpDefault, /"alt\+enter"/);
	assert.match(followUpDefault, /"ctrl\+enter"/);
});
