From ca03ea4d1f69ecc61e197542de77bb25bdb8e0f7 Mon Sep 17 00:00:00 2001 From: Joshua Sullivan-Small Date: Tue, 19 Oct 2021 13:05:13 +0100 Subject: [PATCH] Component ProfileAboutCard: Component creation --- .../ProfileAboutCard/ProfileAboutCard.test.js | 16 +++++ .../ProfileAboutCard/ProfileAboutCard.vue | 63 +++++++++++++++++ .../ProfileAboutCard.test.js.snap | 70 +++++++++++++++++++ 3 files changed, 149 insertions(+) create mode 100644 components/ProfileAboutCard/ProfileAboutCard.test.js create mode 100644 components/ProfileAboutCard/ProfileAboutCard.vue create mode 100644 components/ProfileAboutCard/__snapshots__/ProfileAboutCard.test.js.snap diff --git a/components/ProfileAboutCard/ProfileAboutCard.test.js b/components/ProfileAboutCard/ProfileAboutCard.test.js new file mode 100644 index 00000000..bcde3941 --- /dev/null +++ b/components/ProfileAboutCard/ProfileAboutCard.test.js @@ -0,0 +1,16 @@ +import { stubbedRender } from '@/testUtils'; +import ProfileAboutCard from './ProfileAboutCard'; + +describe('', () => { + it('should render without crashing', () => { + const { unmount } = stubbedRender(ProfileAboutCard); + + unmount(); + }); + + it('renders correctly', () => { + const { container } = stubbedRender(ProfileAboutCard); + + expect(container.firstChild).toMatchSnapshot(); + }); +}); diff --git a/components/ProfileAboutCard/ProfileAboutCard.vue b/components/ProfileAboutCard/ProfileAboutCard.vue new file mode 100644 index 00000000..51026b1d --- /dev/null +++ b/components/ProfileAboutCard/ProfileAboutCard.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/components/ProfileAboutCard/__snapshots__/ProfileAboutCard.test.js.snap b/components/ProfileAboutCard/__snapshots__/ProfileAboutCard.test.js.snap new file mode 100644 index 00000000..3632a4fd --- /dev/null +++ b/components/ProfileAboutCard/__snapshots__/ProfileAboutCard.test.js.snap @@ -0,0 +1,70 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[` renders correctly 1`] = ` +
+
+

+ About +

+
+ +
+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eget dapibus libero. Morbi ultricies varius accumsan. +

+ + +
+
+`;