Skip to content

Commit 491609f

Browse files
committed
test(filterrules): fix unit test
1 parent a2e4e31 commit 491609f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/filterRules/__tests__/filterRules.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const MyInput = ({ rowValues: { input }, rowKey, onChange }: IComponentProps<IRo
1010
<Input value={input} onChange={(e) => onChange?.(rowKey, { input: e.target.value })} />
1111
);
1212

13+
jest.mock('remark-gfm', () => () => {});
1314
describe('FilterRules', () => {
1415
test('should support FilterRules success render', () => {
1516
const wrapper = render(

src/filterRules/ruleController/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from 'react';
22
import { MinusCircleOutlined, PlusCircleOutlined } from '@dtinsight/react-icons';
33
import { InternalNamePath } from 'antd/lib/form/interface';
44
import classnames from 'classnames';
5-
import { useLocale } from 'dt-react-component';
65

6+
import useLocale from '../../locale/useLocale';
77
import { IComponentProps, IFilterValue, ROW_PERMISSION_RELATION } from '..';
88
import './index.scss';
99

0 commit comments

Comments
 (0)