mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
fix test case
This commit is contained in:
parent
90c2d7ee12
commit
c9bf5eb230
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user