From 51f4a2cbca944bd5a976674abfcbf438db38a847 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Wed, 2 Jun 2021 23:58:58 +0530 Subject: [PATCH 1/3] :tada: Add test case for Layout. * Add className of some components. --- __tests__/components/Layout/Layout.spec.tsx | 381 ++++++++++++++++++++ src/components/Layout/Container.tsx | 13 +- src/components/Layout/SidePanel.tsx | 10 +- 3 files changed, 390 insertions(+), 14 deletions(-) create mode 100644 __tests__/components/Layout/Layout.spec.tsx diff --git a/__tests__/components/Layout/Layout.spec.tsx b/__tests__/components/Layout/Layout.spec.tsx new file mode 100644 index 0000000..e873561 --- /dev/null +++ b/__tests__/components/Layout/Layout.spec.tsx @@ -0,0 +1,381 @@ +import React from 'react'; +import { Md3DRotation, MdAccessTime, MdAccountBox, MdAcUnit, MdHome, MdSettings, MdVerifiedUser } from 'react-icons/md'; +import { + Button, + Card, + Container, + Content, + Divider, + List, + ListItem, + Menu, + MenuItem, + Popover, + SidePanel, +} from '../../../src'; + +import '@testing-library/jest-dom'; +import { act, fireEvent, render } from '@testing-library/react'; + +const CreateLayout = () => ( + + } + bottom={[ + + user option 1 + user option 2 + user option 3 + + } + > +