We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1f9ce8 commit 7b8ec87Copy full SHA for 7b8ec87
public/contexts/__mocks__/core_context.tsx
@@ -5,6 +5,7 @@
5
6
import { BehaviorSubject } from 'rxjs';
7
import { coreMock } from '../../../../../src/core/public/mocks';
8
+import { DataSourceServiceMock } from '../../services/data_source_service.mock';
9
10
export const useCore = jest.fn(() => {
11
const useCoreMock = {
@@ -24,11 +25,7 @@ export const useCore = jest.fn(() => {
24
25
load: jest.fn(),
26
},
27
conversationLoad: {},
- dataSource: {
28
- getDataSourceQuery() {
29
- return { dataSourceId: '' };
30
- },
31
+ dataSource: new DataSourceServiceMock(),
32
33
};
34
useCoreMock.services.http.delete.mockReturnValue(Promise.resolve());
0 commit comments