File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/webviews/src/modules/keys-tree/components/keys-summary Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,12 @@ describe('KeysSummary', () => {
79
79
} )
80
80
81
81
it ( 'should call sendEventTelemetry and postMessage actions after click on Add Key icon' , async ( ) => {
82
- const { queryByTestId } = render ( < KeysSummary { ...mockedProps } /> )
82
+ const { queryByTestId } = render ( < KeysSummary { ...mockedProps } dbIndex = { mockDatabase . db ! } /> )
83
83
84
84
fireEvent . click ( queryByTestId ( 'add-key-button' ) ! )
85
85
86
86
expect ( vscodeApi . postMessage ) . toBeCalledWith ( {
87
- action : VscodeMessageAction . AddKey , data : { database : mockDatabase } ,
87
+ action : VscodeMessageAction . AddKey , data : { database : { ... mockDatabase } } ,
88
88
} )
89
89
90
90
expect ( utils . sendEventTelemetry ) . toBeCalledWith ( {
You can’t perform that action at this time.
0 commit comments