We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b08d4f9 commit e52a9e5Copy full SHA for e52a9e5
src/markdown-helpers.ts
@@ -669,7 +669,10 @@ const convertNestedListToTypedKeys = (list: List): TypedKey[] => {
669
'Expected token token to have at least 1 child for typed key extraction',
670
);
671
const keyToken = targetToken.children[0];
672
- expect(keyToken.type).to.equal('code_inline', 'Expected key token to be an inline code block');
+ expect(keyToken.type).to.equal(
673
+ 'code_inline',
674
+ `Expected key token to be an inline code block but instead encountered "${keyToken.content}"`,
675
+ );
676
const typeAndDescriptionTokens = targetToken.children.slice(1);
677
const joinedContent = safelyJoinTokens(typeAndDescriptionTokens);
678
0 commit comments