diff --git a/public/components/DeleteModal/DeleteModal.test.tsx b/public/components/DeleteModal/DeleteModal.test.tsx new file mode 100644 index 000000000..4a187ea45 --- /dev/null +++ b/public/components/DeleteModal/DeleteModal.test.tsx @@ -0,0 +1,22 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +import React from 'react'; +import { render } from '@testing-library/react'; +import DeleteModal from './DeleteModal'; + +describe(' spec', () => { + it('renders the component', () => { + const tree = render( + jest.fn()} + ids={'some ids'} + onClickDelete={() => jest.fn()} + type={'some type'} + /> + ); + expect(tree).toMatchSnapshot(); + }); +}); diff --git a/public/components/DeleteModal/__snapshots__/DeleteModal.test.tsx.snap b/public/components/DeleteModal/__snapshots__/DeleteModal.test.tsx.snap new file mode 100644 index 000000000..b53356b0f --- /dev/null +++ b/public/components/DeleteModal/__snapshots__/DeleteModal.test.tsx.snap @@ -0,0 +1,184 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` spec renders the component 1`] = ` +Object { + "asFragment": [Function], + "baseElement": +