Skip to content

Commit

Permalink
Fixing types check
Browse files Browse the repository at this point in the history
  • Loading branch information
ymao1 committed Apr 1, 2021
1 parent 05837c8 commit 9437c0d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ getIndexPatterns.mockResolvedValueOnce([

const { getFields } = jest.requireMock('../../../../common/index_controls');

async function setup(props) {
async function setup(props: any) {
const wrapper = mountWithIntl(<IndexActionConnectorFields {...props} />);
await act(async () => {
await nextTick();
Expand All @@ -47,7 +47,7 @@ async function setup(props) {
return wrapper;
}

function setupGetFieldsResponse(getFieldsWithDateMapping) {
function setupGetFieldsResponse(getFieldsWithDateMapping: boolean) {
getFields.mockResolvedValueOnce([
{
type: getFieldsWithDateMapping ? 'date' : 'keyword',
Expand Down

0 comments on commit 9437c0d

Please sign in to comment.