diff --git a/client/src/__tests__/components/GiftTemplate/TextType.test.ts b/client/src/__tests__/components/GiftTemplate/TextType.test.ts index 9441b58..2b4fc47 100644 --- a/client/src/__tests__/components/GiftTemplate/TextType.test.ts +++ b/client/src/__tests__/components/GiftTemplate/TextType.test.ts @@ -63,8 +63,18 @@ describe('TextType', () => { text: '**Bold**', format: 'markdown' }; - const expectedOutput = 'Bold'; - expect(TextType({ text: input })).toContain(expectedOutput); + // TODO: investigate why the output has an extra newline + const expectedOutput = 'Bold\n'; + expect(TextType({ text: input })).toBe(expectedOutput); + }); + + it('should format text with HTML correctly', () => { + const input: TextFormat = { + text: 'yes', + format: 'html' + }; + const expectedOutput = 'yes'; + expect(TextType({ text: input })).toBe(expectedOutput); }); it('should format plain text correctly', () => {