From 3c381c6dd136bdb57a1f9c7f435b618edc84746a Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 22 May 2018 20:24:53 +0800 Subject: [PATCH] fix test case skip --- components/mention/__tests__/demo.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/mention/__tests__/demo.test.js b/components/mention/__tests__/demo.test.js index 22a6524f8a..2876c67f97 100644 --- a/components/mention/__tests__/demo.test.js +++ b/components/mention/__tests__/demo.test.js @@ -2,6 +2,4 @@ import demoTest from '../../../tests/shared/demoTest'; jest.mock('draft-js/lib/generateRandomKey', () => () => '123'); -if (process.env.LIB_DIR !== 'dist') { - demoTest('mention'); -} +demoTest('mention', { skip: process.env.LIB_DIR === 'dist' });