From cb116820508e4080ae673fbd6c74eeaae61035c6 Mon Sep 17 00:00:00 2001 From: zombiej Date: Wed, 13 Jul 2022 19:43:56 +0800 Subject: [PATCH] chore: export directly --- src/index.tsx | 3 +++ tests/popup.test.js | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/popup.test.js diff --git a/src/index.tsx b/src/index.tsx index d8851cb..ff0529f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,3 +1,6 @@ import Tooltip from './Tooltip'; +import Popup from './Popup'; + +export { Popup }; export default Tooltip; diff --git a/tests/popup.test.js b/tests/popup.test.js new file mode 100644 index 0000000..dce44ee --- /dev/null +++ b/tests/popup.test.js @@ -0,0 +1,8 @@ +import { Popup } from '../src'; + +describe('Popup', () => { + // Used in antd for C2D2C + it('should export', () => { + expect(Popup).toBeTruthy(); + }); +});