Skip to content

Commit

Permalink
adds additional case for client.get mock
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Dec 18, 2020
1 parent c6ceb76 commit 5ee0f3f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ function setupMockCallCluster(
found: false,
},
});
} else {
return Promise.resolve({
body: {
_source: {
'kql-telemetry': { ...optCount },
type: 'kql-telemetry',
updated_at: '2018-10-05T20:20:56.258Z',
},
},
});
}
}
function mockedEsSearchMethod() {
Expand Down

0 comments on commit 5ee0f3f

Please sign in to comment.