Commit 9416cd7d authored by 陈帅's avatar 陈帅

remove extra code

parent 91be534a
import puppeteer from 'puppeteer';
import RouterConfig from '../../config/router.config'; import RouterConfig from '../../config/router.config';
const BASE_URL = `http://localhost:${process.env.PORT || 8000}`; const BASE_URL = `http://localhost:${process.env.PORT || 8000}`;
...@@ -29,8 +28,6 @@ describe('Homepage', () => { ...@@ -29,8 +28,6 @@ describe('Homepage', () => {
beforeAll(async () => { beforeAll(async () => {
jest.setTimeout(1000000); jest.setTimeout(1000000);
browser = await puppeteer.launch({ args: ['--no-sandbox'] });
page = await browser.newPage();
}); });
formatter(RouterConfig[0].routes).forEach(route => { formatter(RouterConfig[0].routes).forEach(route => {
fit(`test pages ${route}`, testPage(route)); fit(`test pages ${route}`, testPage(route));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment