Files
adf-codec/package-tests/node-floor.js
T
lilleman ece1b029ee
CI / gate (push) Successful in 16s
CI / publish (push) Has been skipped
5c: the build, the freeze audit and the release pipeline
2026-09-03 20:25:41 +02:00

10 lines
433 B
JavaScript

import assert from 'node:assert/strict'
import { adfToMarkdown, markdownToAdf } from '@larvit/adf-codec'
const document = { content: [{ content: [{ marks: [{ type: 'em' }], text: 'x', type: 'text' }], type: 'paragraph' }], type: 'doc', version: 1 }
const emitted = adfToMarkdown(document)
assert.ok(emitted.ok, emitted.ok ? '' : emitted.error.message)
assert.deepEqual(markdownToAdf(emitted.value), { ok: true, value: document })