Files
react-navigation/example/e2e/__integration_tests__/server.test.tsx
2020-05-26 16:07:47 +02:00

14 lines
299 B
TypeScript

import fetch from 'node-fetch';
import cheerio from 'cheerio';
const server = 'http://localhost:3275';
it('renders the home page', async () => {
const res = await fetch(server);
const html = await res.text();
const $ = cheerio.load(html);
expect($('title').text()).toBe('Examples');
});