Skip to content
Snippets Groups Projects

Fix format task

Merged Guillaume Grossetie requested to merge ggrossetie/asciidoc-tck:fix-format-task into main
7 files
+ 42
47
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -18,12 +18,7 @@ describe('tests', () => {
describe('inline', function () {
console.log(this)
const inlineTests = tests.find((it) => it.type === 'dir' && it.name === 'inline').entries
makeTests(inlineTests, async function ({
input,
inputPath,
expected,
expectedWithoutLocations,
}) {
makeTests(inlineTests, async function ({ input, inputPath, expected, expectedWithoutLocations }) {
const actualRoot = await parse(input)
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')
@@ -43,12 +38,7 @@ describe('tests', () => {
})
describe('block', function () {
const blockTests = tests.find((it) => it.type === 'dir' && it.name === 'block').entries
makeTests(blockTests, async function ({
input,
inputPath,
expected,
expectedWithoutLocations,
}) {
makeTests(blockTests, async function ({ input, inputPath, expected, expectedWithoutLocations }) {
const actual = await parse(input)
if (expected == null) {
// Q: can we write data to expect file automatically?
Loading