Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test("SSR Loads with an HTML Body", () => {
- request(url, (err, resp, body) => {
- if (!err && resp.statusCode === 200) {
- const cheer = cheerio.load(body);
- expect(cheer("#__next").find("div")).toBeGreaterThan(0);
- }
- });
- });
Add Comment
Please, Sign In to add comment