Skip to content

Commit dd23a31

Browse files
committed
test: 💍 add missing methods in mock
1 parent 37eda8d commit dd23a31

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/plugins/discover/public/mocks.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ const createSetupContract = (): Setup => {
2121
getUrl: jest.fn(),
2222
useUrl: jest.fn(),
2323
navigate: jest.fn(),
24+
extract: jest.fn(),
25+
inject: jest.fn(),
26+
telemetry: jest.fn(),
27+
migrations: {},
2428
},
2529
};
2630
return setupContract;
@@ -37,6 +41,10 @@ const createStartContract = (): Start => {
3741
getUrl: jest.fn(),
3842
useUrl: jest.fn(),
3943
navigate: jest.fn(),
44+
extract: jest.fn(),
45+
inject: jest.fn(),
46+
telemetry: jest.fn(),
47+
migrations: {},
4048
},
4149
};
4250
return startContract;

0 commit comments

Comments
 (0)