import assert from 'node:assert/strict'; import test from 'node:test'; import { renderToStaticMarkup } from 'react-dom/server'; import { MediaSessionList } from '../components/library/MediaSessionList'; test('MediaSessionList renders expandable session rows with delete affordance', () => { const markup = renderToStaticMarkup( {}} initialExpandedSessionId={7} />, ); assert.match(markup, /Session History/); assert.match(markup, /aria-expanded="true"/); assert.match(markup, /Delete session Episode 7/); assert.match(markup, /tokens/); assert.match(markup, /No token data for this session/); });