mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-20 15:15:44 +01:00
Answer architecture round 1: 2 🔴, 6 🟡 (0 misread); one escaping path refusing null characters, block writers returning their pieces, the HTML writer split, shared entry checks, lint between formats
This commit is contained in:
@@ -56,11 +56,12 @@ test('a generated document writes portable markdown refusing only what the guard
|
||||
)
|
||||
})
|
||||
|
||||
test('a generated document writes HTML', { timeout: propertyTimeout }, () => {
|
||||
test('a generated document writes HTML holding no null character', { timeout: propertyTimeout }, () => {
|
||||
fc.assert(
|
||||
fc.property(adfDocument, (document) => {
|
||||
const written = adfToHtml(document)
|
||||
assert.ok(written.ok, written.ok ? '' : `${written.error.code}: ${written.error.message}`)
|
||||
assert.ok(!written.value.includes('\0'), `writing ${JSON.stringify(document)}`)
|
||||
}),
|
||||
propertyRuns(gateRuns),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user