fix test case

This commit is contained in:
afc163 2016-06-16 22:36:45 +08:00
parent 90c2d7ee12
commit c9bf5eb230

View File

@ -7,8 +7,9 @@ describe('antd dist files', function() {
const distFilesExisted = fs.existsSync(path.join(process.cwd(), 'dist', 'antd.js'));
if (!distFilesExisted) {
return;
} else {
jest.unmock('../dist/antd');
}
jest.unmock('../dist/antd');
// fixed jsdom miss
if (typeof window !== 'undefined') {