Commit 668074c8 authored by afc163's avatar afc163

Fix test case

parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment