From 0cae7517b9a377f8cf4f0dfe740d5f13873103ab Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Mon, 21 Oct 2019 12:54:13 +0200 Subject: [PATCH] Add profile tree test to git index --- .../__tests__/profile_tree.test.tsx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 x-pack/legacy/plugins/searchprofiler/np_ready/public/application/components/profile_tree/__tests__/profile_tree.test.tsx diff --git a/x-pack/legacy/plugins/searchprofiler/np_ready/public/application/components/profile_tree/__tests__/profile_tree.test.tsx b/x-pack/legacy/plugins/searchprofiler/np_ready/public/application/components/profile_tree/__tests__/profile_tree.test.tsx new file mode 100644 index 00000000000000..2bdcc44bbb4a99 --- /dev/null +++ b/x-pack/legacy/plugins/searchprofiler/np_ready/public/application/components/profile_tree/__tests__/profile_tree.test.tsx @@ -0,0 +1,20 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License; + * you may not use this file except in compliance with the Elastic License. + */ + +import { registerTestBed } from '../../../../../../../../../test_utils'; +import { searchResponse } from './fixtures/search_response'; +import { ProfileTree, Props } from '../profile_tree'; + +describe('ProfileTree', () => { + it('renders', async () => { + const props: Props = { + target: 'searches', + data: searchResponse, + }; + const init = registerTestBed(ProfileTree); + await init(props); + }); +});