From 7df10cef391891cbc0b04ed2a3169d4d8edc68ad Mon Sep 17 00:00:00 2001 From: Jen Gettings Date: Thu, 3 Oct 2024 11:17:02 -0400 Subject: [PATCH] education skills --- src/components/KeywordsPipeList.test.tsx | 25 +++++++++++++++ src/components/KeywordsPipeList.tsx | 32 +++++++++++++++++++ src/data/index.ts | 1 + src/data/resume.json | 9 +++++- .../ResumeTimeline/EducationTimelineItem.tsx | 4 ++- src/pages/ResumeTimeline/WorkTimelineItem.tsx | 4 +-- src/pages/Skills/index.tsx | 14 ++------ 7 files changed, 73 insertions(+), 16 deletions(-) create mode 100644 src/components/KeywordsPipeList.test.tsx create mode 100644 src/components/KeywordsPipeList.tsx diff --git a/src/components/KeywordsPipeList.test.tsx b/src/components/KeywordsPipeList.test.tsx new file mode 100644 index 0000000..c105d84 --- /dev/null +++ b/src/components/KeywordsPipeList.test.tsx @@ -0,0 +1,25 @@ +import { render, screen } from '@testing-library/react'; +import KeywordsPipeList from './KeywordsPipeList'; + +describe('KeywordsPipeList', () => { + it('renders null if there keywords is undefined', () => { + const { container } = render(); + expect(container).toBeEmptyDOMElement(); + }); + it('renders null if there keywords is empty', () => { + // We don't want an empty