Skip to content
Snippets Groups Projects
Commit f28c9ed8 authored by syuilo's avatar syuilo
Browse files

test: add test for multi-line code block

parent 1b4aeb0f
No related branches found
No related tags found
No related merge requests found
......@@ -151,6 +151,11 @@ describe('code block', () => {
const output = [CODE_BLOCK('abc', null)];
assert.deepStrictEqual(parse(input), output);
});
it('multi line', () => {
const input = '```\na\nb\nc\n```';
const output = [CODE_BLOCK('a\nb\nc', null)];
assert.deepStrictEqual(parse(input), output);
});
it('basic (lang)', () => {
const input = '```js\nconst a = 1;\n```';
const output = [CODE_BLOCK('const a = 1;', 'js')];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment