feat: Use Oniguruma-To-ES in the JS engine (#828) #544
Annotations
3 errors
Test:
packages/engine-javascript/test/compare.test.ts#L192
AssertionError: expected [ [ { content: '<div', …(3) }, …(9) ] ] to deeply equal [ [ { …(4) } ] ]
- Expected
+ Received
Array [
Array [
Object {
+ "color": "#81A1C1",
+ "content": "<div",
+ "fontStyle": 0,
+ "offset": 0,
+ },
+ Object {
"color": "#D8DEE9FF",
- "content": "<div class=\"foo\">bar</div>",
+ "content": " ",
+ "fontStyle": 0,
+ "offset": 4,
+ },
+ Object {
+ "color": "#8FBCBB",
+ "content": "class",
+ "fontStyle": 0,
+ "offset": 5,
+ },
+ Object {
+ "color": "#81A1C1",
+ "content": "=",
"fontStyle": 0,
- "offset": 0,
+ "offset": 10,
+ },
+ Object {
+ "color": "#ECEFF4",
+ "content": "\"",
+ "fontStyle": 0,
+ "offset": 11,
+ },
+ Object {
+ "color": "#A3BE8C",
+ "content": "foo",
+ "fontStyle": 0,
+ "offset": 12,
+ },
+ Object {
+ "color": "#ECEFF4",
+ "content": "\"",
+ "fontStyle": 0,
+ "offset": 15,
+ },
+ Object {
+ "color": "#81A1C1",
+ "content": ">",
+ "fontStyle": 0,
+ "offset": 16,
+ },
+ Object {
+ "color": "#D8DEE9FF",
+ "content": "bar",
+ "fontStyle": 0,
+ "offset": 17,
+ },
+ Object {
+ "color": "#81A1C1",
+ "content": "</div>",
+ "fontStyle": 0,
+ "offset": 20,
},
],
]
❯ packages/engine-javascript/test/compare.test.ts:192:24
❯ packages/engine-javascript/test/compare.test.ts:191:15
|
Test:
packages/engine-javascript/test/compare.test.ts#L192
AssertionError: expected [ [ …(6) ] ] to deeply equal [ [ …(3) ] ]
- Expected
+ Received
Array [
Array [
Object {
"color": "#81A1C1",
"content": "SELECT",
"fontStyle": 0,
"offset": 0,
},
Object {
"color": "#D8DEE9FF",
"content": " ",
"fontStyle": 0,
"offset": 6,
},
Object {
"color": "#81A1C1",
- "content": "* FROM foo",
+ "content": "*",
"fontStyle": 0,
"offset": 7,
+ },
+ Object {
+ "color": "#D8DEE9FF",
+ "content": " ",
+ "fontStyle": 0,
+ "offset": 8,
+ },
+ Object {
+ "color": "#81A1C1",
+ "content": "FROM",
+ "fontStyle": 0,
+ "offset": 9,
+ },
+ Object {
+ "color": "#D8DEE9FF",
+ "content": " foo",
+ "fontStyle": 0,
+ "offset": 13,
},
],
]
❯ packages/engine-javascript/test/compare.test.ts:192:24
❯ packages/engine-javascript/test/compare.test.ts:191:15
|
Test
Process completed with exit code 1.
|
Loading