From f5aa19bcf0d2275e2a7b9c2931a3ac82201e403e Mon Sep 17 00:00:00 2001 From: Jessica Mulein Date: Thu, 12 Sep 2024 19:34:59 +0000 Subject: [PATCH] Fix electric shocker font and 'Duality' size in top menu --- apps/duality-social-react/src/components/top-menu.tsx | 2 +- apps/duality-social-react/src/styles.scss | 7 +++++++ .../src/lib/duality-social-lib.spec.ts | 9 +++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/apps/duality-social-react/src/components/top-menu.tsx b/apps/duality-social-react/src/components/top-menu.tsx index 4e8962f..f3e90bf 100644 --- a/apps/duality-social-react/src/components/top-menu.tsx +++ b/apps/duality-social-react/src/components/top-menu.tsx @@ -54,7 +54,7 @@ const TopMenu: React.FC = () => { style={{ height: 40, marginRight: 10 }} /> - + Duality { expect(result).toEqual(expected); expect(result).not.toContain('

'); }); + + it('should handle a two-line post with one letter per line correctly when isBlogPost is true', () => { + const input = 'x\nx'; + const isBlogPost = true; + const expected = '

x
\nx

'; + + const result = parsePostContent(input, isBlogPost); + expect(result).toEqual(expected); + }); }); describe('prepareContentForCharacterCount', () => {