Skip to content

Commit c48a80c

Browse files
committed
fix database panel dialog
1 parent 0f7ab51 commit c48a80c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

redisinsight/ui/src/pages/home/components/database-panel-dialog/DatabasePanelDialog.spec.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ import DatabasePanelDialog, { Props } from './DatabasePanelDialog'
66

77
const mockedProps = mock<Props>()
88

9+
jest.mock('uiSrc/components/base/display', () => {
10+
const actual = jest.requireActual('uiSrc/components/base/display')
11+
12+
return {
13+
...actual,
14+
Modal: {
15+
...actual.Modal,
16+
Content: {
17+
...actual.Modal.Content,
18+
Header: {
19+
...actual.Modal.Content.Header,
20+
Title: jest.fn().mockReturnValue(null),
21+
},
22+
},
23+
},
24+
}
25+
})
26+
927
describe('DatabasePanelDialog', () => {
1028
it('should render', () => {
1129
expect(

0 commit comments

Comments
 (0)