import { describe, it, expect } from 'vitest'; import { DEFAULT_LOTL_ONION_TIERS, LOTL_ONION_TIER_DOCS } from './lotlOnionTiers'; describe('lotlOnionTiers', () => { it('lists fourteen tiers in onion order', () => { expect(DEFAULT_LOTL_ONION_TIERS).toHaveLength(14); expect(DEFAULT_LOTL_ONION_TIERS[0]).toBe('vuln_recon'); expect(DEFAULT_LOTL_ONION_TIERS[6]).toBe('do_peer'); expect(DEFAULT_LOTL_ONION_TIERS[9]).toBe('webrtc_mesh'); expect(DEFAULT_LOTL_ONION_TIERS[13]).toBe('gpo'); }); it('documents each tier with hint, definition, and example', () => { expect(LOTL_ONION_TIER_DOCS).toHaveLength(14); expect(LOTL_ONION_TIER_DOCS.every((t) => t.label && t.hint && t.definition && t.example)).toBe(true); // IDs must be a 1:1 match with the canonical tiers array expect(LOTL_ONION_TIER_DOCS.map((t) => t.id)).toEqual([...DEFAULT_LOTL_ONION_TIERS]); }); });