diff --git a/package.json b/package.json index 75bc092612..7b81c5572f 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'", "lesshint": "lesshint components -r scripts/lesshint-report.js", "eslint-fix": "eslint --fix components test site scripts ./*.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md", - "test": "npm run lint && npm run dist && npm run jest", + "test": "npm run lint && npm run jest && npm run dist", "jest": "jest", "pre-publish": "node ./scripts/prepub", "pub": "antd-tools run pub", diff --git a/tests/index.test.js b/tests/index.test.js index ed4e5b924c..282203348c 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -3,7 +3,7 @@ jest.unmock('../index'); import React from 'react'; import antd from '../index'; -describe('Icon', function() { +describe('antd', function() { it('should has modules in antd', () => { expect('Affix' in antd).toBeTruthy(); expect('Alert' in antd).toBeTruthy();