Skip to content
Snippets Groups Projects

Docs and fixes

Closed Jared Henderson requested to merge jaredh159/asciidoc-tck:docs-and-fixes into main
2 files
+ 11
10
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -22,15 +22,11 @@ const testsSuite = async (testDir = ospath.join(PACKAGE_DIR, 'tests')) => {
describe('inline', function () {
const inlineTests = tests.find((it) => it.type === 'dir' && it.name === 'inline').entries
makeTests(inlineTests, async function ({ input, inputPath, expected, expectedWithoutLocations }) {
const actualRoot = await parse({
const actual = await parse({
contents: input,
path: inputPath,
type: 'inline',
})
assert.ok('blocks' in actualRoot, 'should have a blocks property')
assert.ok(actualRoot.blocks.length === 1, 'blocks property should have one (and only one) block')
assert.ok('inlines' in actualRoot.blocks[0], 'first block in blocks should have an inlines property')
const actual = actualRoot.blocks[0].inlines
if (expected == null) {
// Q: can we write data to expected file automatically?
// TODO only output expected if environment variable is set
Loading