html.test.ts
This file
Path
src/utils/html.test.ts
8 lines 路 302 bytes 路 TypeScript
Last changed by
refactor(html): make `html` as middleware (#319)Yusuke Wadabefore adoption5976a60
History of this fileTake it
123456789import { escape } from './html'
describe('HTML escape', () => { it('Should escape special characters', () => { expect(escape('I <b>think</b> this is good.')).toBe('I <b>think</b> this is good.') expect(escape('John "Johnny" Smith')).toBe('John "Johnny" Smith') })})