skip mention test when test dist file

This commit is contained in:
afc163 2018-05-22 14:33:59 +08:00 committed by 偏右
parent 22d2f9eb01
commit 77301c378f

View File

@ -2,4 +2,6 @@ import demoTest from '../../../tests/shared/demoTest';
jest.mock('draft-js/lib/generateRandomKey', () => () => '123');
demoTest('mention');
if (process.env.LIB_DIR !== 'dist') {
demoTest('mention');
}