MCPcopy
hub / github.com/markedjs/marked / expectInlineTokens

Function expectInlineTokens

test/unit/Lexer.test.js:20–26  ·  view source on GitHub ↗
({ md, options, tokens, links = {} })

Source from the content-addressed store, hash-verified

18}
19
20function expectInlineTokens({ md, options, tokens, links = {} }) {
21 const lexer = new Lexer(options);
22 lexer.tokens.links = links;
23 const outTokens = [];
24 lexer.inlineTokens(md, outTokens);
25 assert.deepEqual(outTokens, tokens);
26}
27
28describe('Lexer', () => {
29 describe('rules', () => {

Callers 1

Lexer.test.jsFile · 0.85

Calls 1

inlineTokensMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…