Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilGenius13 committed Jan 13, 2025
1 parent 299f1a6 commit c6c41ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/liquid-html-parser/src/stage-1-cst.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,9 @@ describe('Unit: Stage 1 (CST)', () => {
expectPath(cst, '0.children.0.type').to.equal('LiquidDocExampleNode');
expectPath(cst, '0.children.0.value').to.equal('@example');
expectPath(cst, '0.children.0.locStart').to.equal(testStr.indexOf('@example'));
expectPath(cst, '0.children.0.locEnd').to.equal(testStr.indexOf('@example') + '@example'.length);
expectPath(cst, '0.children.0.locEnd').to.equal(
testStr.indexOf('@example') + '@example'.length,
);
});

it('should parse an example tag with a value', () => {
Expand All @@ -1136,13 +1138,12 @@ describe('Unit: Stage 1 (CST)', () => {
);
});

it ('should parse example node and stop at the next @', () => {
const testStr = `
{% doc %}
it('should parse example node and stop at the next @', () => {
const testStr = `{% doc %}
@example
This is an example
@param param1
{% enddoc %}`;
{% enddoc %}`;
cst = toCST(testStr);
expectPath(cst, '0.children.0.type').to.equal('LiquidDocExampleNode');
expectPath(cst, '0.children.0.value').to.equal('@example');
Expand Down

0 comments on commit c6c41ae

Please sign in to comment.