import assert from "node:assert/strict"; import test from "node:test"; import { accountAddDecision, selectableAccount } from "./account-pro-gate.js";
test("free limit opens Pro before login while history-only accounts do not consume capacity",()=>{assert.equal(accountAddDecision([{id:"a"}],1),"pro_required");assert.equal(accountAddDecision([{id:"h",historyOnly:true}],1),"allowed");});
test("entitlement-locked accounts remain visible but cannot be selected",()=>{assert.equal(selectableAccount({id:"locked",entitlementLocked:true}),false);assert.equal(selectableAccount({id:"open"}),true);});
