html.test.ts
This file
Path
src/utils/html.test.ts
16 lines · 529 bytes · TypeScript
Last changed by
Not known.
History of this fileTake it
The walk stopped after 200 commits: lines older than f0b094d point at it.
Merge commit from forkYusuke Wadabefore adoptionf0b094d
lines 1–16why, one step back1import { escapeToBuffer } from './html'2import type { StringBuffer } from './html'34describe('HTML utilities', () => {5 describe('escapeToBuffer', () => {6 it('Should escape special characters', () => {7 let buffer: StringBuffer = ['']8 escapeToBuffer('I <b>think</b> this is good.', buffer)9 expect(buffer[0]).toBe('I <b>think</b> this is good.')1011 buffer = ['']12 escapeToBuffer('John "Johnny" Smith', buffer)13 expect(buffer[0]).toBe('John "Johnny" Smith')14 })15 })16})