@@ -24,19 +24,17 @@ function mockUsageCollection(kibanaUsage = {}) {
2424// set up successful call mocks for info, cluster stats, nodes usage and data telemetry
2525function mockGetLocalStats ( clusterInfo : any , clusterStats : any ) {
2626 const esClient = elasticsearchServiceMock . createClusterClient ( ) . asInternalUser ;
27- esClient . info
28- // @ts -ignore we only care about the response body
29- . mockResolvedValue (
30- // @ts -ignore we only care about the response body
31- {
32- body : { ...clusterInfo } ,
33- }
34- ) ;
27+ esClient . info . mockResolvedValue (
28+ // @ts -expect-error we only care about the response body
29+ {
30+ body : { ...clusterInfo } ,
31+ }
32+ ) ;
3533 esClient . cluster . stats
36- // @ts -ignore we only care about the response body
34+ // @ts -expect-error we only care about the response body
3735 . mockResolvedValue ( { body : { ...clusterStats } } ) ;
3836 esClient . nodes . usage . mockResolvedValue (
39- // @ts -ignore we only care about the response body
37+ // @ts -expect-error we only care about the response body
4038 {
4139 body : {
4240 cluster_name : 'testCluster' ,
@@ -64,9 +62,9 @@ function mockGetLocalStats(clusterInfo: any, clusterStats: any) {
6462 } ,
6563 }
6664 ) ;
67- // @ts -ignore we only care about the response body
65+ // @ts -expect-error we only care about the response body
6866 esClient . indices . getMapping . mockResolvedValue ( { body : { mappings : { } } } ) ;
69- // @ts -ignore we only care about the response body
67+ // @ts -expect-error we only care about the response body
7068 esClient . indices . stats . mockResolvedValue ( { body : { indices : { } } } ) ;
7169 return esClient ;
7270}
0 commit comments