Skip to content

Commit 49815a6

Browse files
authored
test: remove redundant test
Removed test case for parsing without top-level frontmatter.
1 parent 2e18282 commit 49815a6

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/generators/metadata/utils/__tests__/parse.test.mjs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,5 @@ describe('parseApiDoc', () => {
262262
assert.strictEqual(secondContent.length, 2);
263263
assert.strictEqual(secondContent[0].type, 'heading');
264264
});
265-
266-
it('works correctly without top-level frontmatter', () => {
267-
const tree = u('root', [
268-
h('First Heading'),
269-
u('paragraph', [u('text', 'First content.')]),
270-
]);
271-
const results = parseApiDoc({ path, tree }, typeMap);
272-
273-
assert.strictEqual(results.length, 1);
274-
assert.strictEqual(results[0].content.children.length, 2);
275-
assert.strictEqual(results[0].content.children[0].type, 'heading');
276-
});
277265
});
278266
});

0 commit comments

Comments
 (0)