import { render, screen } from '@test-utils';
import TableOfContents from './table-of-contents';

describe('TableOfContents', () => {
  it('renders the ToC title', () => {
    const divEl = document.createElement('div');
    render(<TableOfContents wrapper={divEl} />);
    expect(
      screen.getByRole('heading', { level: 2, name: /Table of Contents/i })
    ).toBeInTheDocument();
  });
});
ppot.eu/www.armandphilippot.com' title='www.armandphilippot.com Git repository'/>
<link rel='vcs-git' href='git://git.armand.philippot.euwww.armandphilippot.com' title='www.armandphilippot.com Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='/cgit-data/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a href='/www.armandphilippot.com/'>www.armandphilippot.com</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'/><select name='h' onchange='this.form.submit();'>
<option value='main'>main</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>The frontend of my personal website.</td><td class='sub right'>Armand Philippot</td></tr></table>
<table class='tabs'><tr><td>
<a href='/www.armandphilippot.com/?h=v2.0.0'>summary</a><a href='/www.armandphilippot.com/refs/?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>refs</a><a href='/www.armandphilippot.com/log/src/components/Main/Main.module.scss?h=v2.0.0'>log</a><a class='active' href='/www.armandphilippot.com/tree/src/components/Main/Main.module.scss?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>tree</a><a href='/www.armandphilippot.com/commit/src/components/Main/Main.module.scss?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>commit</a><a href='/www.armandphilippot.com/diff/src/components/Main/Main.module.scss?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>diff</a><a href='/www.armandphilippot.com/stats/src/components/Main/Main.module.scss?h=v2.0.0'>stats</a></td><td class='form'><form class='right' method='get' action='/www.armandphilippot.com/log/src/components/Main/Main.module.scss'>
<input type='hidden' name='h' value='v2.0.0'/><input type='hidden' name='id' value='b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/www.armandphilippot.com/tree/?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>root</a>/<a href='/www.armandphilippot.com/tree/src?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>src</a>/<a href='/www.armandphilippot.com/tree/src/components?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>components</a>/<a href='/www.armandphilippot.com/tree/src/components/Main?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>Main</a>/<a href='/www.armandphilippot.com/tree/src/components/Main/Main.module.scss?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>Main.module.scss</a></div><div class='content'>blob: 819474c41f2eaa295f51b764e18da5c571ea2e0c (<a href='/www.armandphilippot.com/plain/src/components/Main/Main.module.scss?h=v2.0.0&amp;id=b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
</pre></td>
<td class='lines'><pre><code>