import { removeNewlineAndPTag } from "../../src/utils/newSanitizer"; describe('newSanitizer', () => { test('Should remove /\n and

/

elements', () => { const input = "\n

This is a string

"; const expectedOutput = "This is a string" expect(removeNewlineAndPTag(input)).toEqual(expectedOutput); }); });