chore(deps): update typst.ts version to 0.5.1 #7
Annotations
3 errors
test/typstToTextlintAst.test.ts > getRawTypstAstString > should return raw typst ast string:
test/typstToTextlintAst.test.ts#L41
AssertionError: expected '---\npath: main.typ\nast:\n s: <span…' to strictly equal '---\npath: main.typ\nast:\n s: <span…'
- Expected
+ Received
---
path: main.typ
ast:
s: <span style='color:#7dcfff'>Marked::Markup</span>
c:
- s: <span style='color:#bb9af7'>Kw::Hash</span> <1:0~1:1>
- s: <span style='color:#7dcfff'>Marked::SetRule</span> <1:1~1:36>
c:
- s: <span style='color:#bb9af7'>Kw::Set</span> <1:1~1:4>
- s: <span style='color:#7aa2f7'>Fn::(Ident: "page")</span> <1:5~1:9>
- s: <span style='color:#7dcfff'>Marked::Args</span> <1:9~1:36>
c:
- s: <span style='color:#c0caf5'>Punc::LeftParen</span> <1:9~1:10>
- s: <span style='color:#7dcfff'>Marked::Named</span> <1:10~1:21>
c:
- s: <span style='color:#7dcfff'>Marked::(Ident: "width")</span> <1:10~1:15>
- s: <span style='color:#c0caf5'>Punc::Colon</span> <1:15~1:16>
- s: <span style='color:#e08f68'>Num(Numeric, 10Cm)</span> <1:17~1:21>
- s: <span style='color:#c0caf5'>Punc::Comma</span> <1:21~1:22>
- s: <span style='color:#7dcfff'>Marked::Named</span> <1:23~1:35>
c:
- s: <span style='color:#7dcfff'>Marked::(Ident: "height")</span> <1:23~1:29>
- s: <span style='color:#c0caf5'>Punc::Colon</span> <1:29~1:30>
- s: <span style='color:#bb9af7'>Kw::Auto</span> <1:31~1:35>
- s: <span style='color:#c0caf5'>Punc::RightParen</span> <1:35~1:36>
- s: <span style='color:#bb9af7'>Kw::Hash</span> <2:0~2:1>
- s: <span style='color:#7dcfff'>Marked::SetRule</span> <2:1~2:29>
c:
- s: <span style='color:#bb9af7'>Kw::Set</span> <2:1~2:4>
- s: <span style='color:#7aa2f7'>Fn::(Ident: "heading")</span> <2:5~2:12>
- s: <span style='color:#7dcfff'>Marked::Args</span> <2:12~2:29>
c:
- s: <span style='color:#c0caf5'>Punc::LeftParen</span> <2:12~2:13>
- s: <span style='color:#7dcfff'>Marked::Named</span> <2:13~2:28>
c:
- s: <span style='color:#7dcfff'>Marked::(Ident: "numbering")</span> <2:13~2:22>
- s: <span style='color:#c0caf5'>Punc::Colon</span> <2:22~2:23>
- s: <span style='color:#9ece6a'>Str("1.")</span> <2:24~2:28>
- s: <span style='color:#c0caf5'>Punc::RightParen</span> <2:28~2:29>
- s: <span style='color:#7dcfff'>Marked::Parbreak</span> <2:29~4:0>
- s: <span style='color:#7dcfff'>Marked::Heading</span> <4:0~4:20>
c:
- s: <span style='color:#7dcfff'>Marked::HeadingMarker</span> <4:0~4:1>
- s: <span style='color:#7dcfff'>Marked::Markup</span> <4:2~4:20>
c:
- s: <span style='color:#7dcfff'>Marked::Text</span> <4:2~4:20>
- s: <span style='color:#7dcfff'>Marked::Text</span> <5:0~5:45>
- s: <span style='color:#7dcfff'>Marked::Text</span> <6:0~6:19>
- s: <span style='color:#7dcfff'>Marked::Equation</span> <6:20~6:45>
c:
- s: <span style='color:#7dcfff'>Marked::Dollar</span> <6:20~6:21>
- s: <span style='color:#7dcfff'>Marked::Math</span> <6:21~6:44>
c:
- s: <span style='color:#7dcfff'>Marked::MathAttach</span> <6:21~6:24>
c:
- s: <span style='color:#7dcfff'>Marked::Text</span> <6:21~6:22>
- s: <span style='color:#7dcfff'>Marked::Underscore</span> <6:22~6:23>
- s: <span style='color:#7dcfff'>Marked::Text</span> <6:23~6:24>
- s: <span style='color:#7dcfff'>Marked::Text</span> <6:25~6:26>
- s: <span style='color:#7dcfff'>Marked::MathAttach</span> <6:27~6:34>
c:
- s: <span style='color:#7dcfff'>Marked::Text</span> <6:27~6:28>
- s: <span style='color:#7dcfff'>Marked::Underscore</span> <6:28~6:29>
- s: <span style='color:#7dc
|
test/typstToTextlintAst.test.ts > convertTypstSourceToParagraphizedTextlintAstObject > should convert Typst source to textlint AST object:
test/typstToTextlintAst.test.ts#L107
AssertionError: expected { children: [ { …(5) }, …(25) ], …(4) } to strictly equal { children: [ { …(5) }, …(25) ], …(4) }
- Expected
+ Received
Object {
"children": Array [
Object {
"loc": Object {
"end": Object {
"column": 1,
"line": 1,
},
"start": Object {
"column": 0,
"line": 1,
},
},
"range": Array [
0,
1,
],
"raw": "#",
"type": "Kw::Hash",
"value": "#",
},
Object {
"children": Array [
Object {
"loc": Object {
"end": Object {
"column": 4,
"line": 1,
},
"start": Object {
"column": 1,
"line": 1,
},
},
"range": Array [
1,
4,
],
"raw": "set",
"type": "Kw::Set",
"value": "set",
},
Object {
"loc": Object {
"end": Object {
"column": 5,
"line": 1,
},
"start": Object {
"column": 4,
"line": 1,
},
},
"range": Array [
4,
5,
],
"raw": " ",
"type": "Str",
"value": " ",
},
Object {
"loc": Object {
"end": Object {
"column": 9,
"line": 1,
},
"start": Object {
"column": 5,
"line": 1,
},
},
"range": Array [
5,
9,
],
"raw": "page",
"type": "Fn::(Ident: "page")",
"value": "page",
},
Object {
"children": Array [
Object {
"loc": Object {
"end": Object {
"column": 10,
"line": 1,
},
"start": Object {
"column": 9,
"line": 1,
},
},
"range": Array [
9,
10,
],
"raw": "(",
"type": "Punc::LeftParen",
"value": "(",
},
Object {
"children": Array [
Object {
"loc": Object {
"end": Object {
"column": 15,
"line": 1,
},
"start": Object {
"column": 10,
"line": 1,
},
},
"range": Array [
10,
15,
],
"raw": "width",
"type": "Marked::(Ident: "width")",
"value": "width",
},
Object {
"loc": Object {
"end": Object {
"column": 16,
"line": 1,
},
"start": Object {
"column": 15,
"line": 1,
},
},
"range": Array [
15,
16,
],
"raw": ":",
"type": "Punc::Colon",
"value": ":",
},
Object {
"loc": Object {
"end": Object {
"column": 17,
"line": 1,
},
"start": Object {
"column": 16,
|
test
Process completed with exit code 1.
|