Skip to content

Open-source Xbox-inspired desktop launcher for Xodus on Linux

TypeScript
639 B
Raw Blame
import {expect,it} from 'vitest';
import {renderToStaticMarkup} from 'react-dom/server';
import {demoSnapshot} from '../shared/demo-data';
import {HomePage} from './App';
it('uses real library highlights instead of duplicating sidebar shortcuts',()=>{
 const data=demoSnapshot(),html=renderToStaticMarkup(<HomePage data={data} go={()=>{}} action={()=>{}} />);
 expect(html).toContain('home-highlights');expect(html).toContain('Recently installed');expect(html).toContain('Recently added in Game Pass');
 expect(html).not.toContain('Quick access');expect(html).not.toContain('quick-grid');
 expect(html).toContain(data.games[0].title);
});