提交 668074c8 编写于 作者: A afc163

Fix test case

上级 889447f4
......@@ -46,14 +46,14 @@
"react-fittext": "^1.0.0"
},
"devDependencies": {
"@babel/preset-env": "^7.0.0-beta.36",
"@babel/preset-react": "^7.0.0-beta.36",
"babel-eslint": "^8.1.2",
"babel-jest": "^22.0.4",
"babel-plugin-dva-hmr": "^0.4.1",
"babel-plugin-import": "^1.6.3",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"cross-env": "^5.1.1",
"cross-port-killer": "^1.0.1",
"enzyme": "^3.1.0",
......@@ -86,8 +86,8 @@
},
"babel": {
"presets": [
"env",
"react"
"@babel/env",
"@babel/react"
],
"plugins": [
"transform-decorators-legacy",
......
import Nightmare from 'nightmare';
describe('Homepage', () => {
it('it should have logo text', async () => {
const page = Nightmare().goto('http://localhost:8000');
const text = await page.wait('h1').evaluate(() => document.body.innerHTML).end();
expect(text).toContain('<h1>Ant Design Pro</h1>');
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册