Skip to content

Commit 5cace9b

Browse files
committed
Fix tests
1 parent 9e261d3 commit 5cace9b

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

tests/__snapshots__/transform.test.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ NGEmptyExpression {
913913
> 2 |
914914
| ^
915915
> 3 | // comment
916-
| ^^^^^^^^^^^^
916+
| ^^^^^^^^^^^
917917
--------------------------------------------------------------------------------
918918
CommentLine {
919919
"value": " comment"
@@ -935,7 +935,7 @@ NGEmptyExpression {
935935
> 2 |
936936
| ^
937937
> 3 | // comment
938-
| ^^^^^^^^^^^^
938+
| ^^^^^^^^^^^
939939
--------------------------------------------------------------------------------
940940
CommentLine {
941941
"value": " comment"
@@ -965,7 +965,7 @@ NGEmptyExpression {
965965
> 2 |
966966
| ^
967967
> 3 | // comment
968-
| ^^^^^^^^^^^^
968+
| ^^^^^^^^^^^
969969
--------------------------------------------------------------------------------
970970
CommentLine {
971971
"value": " comment"
@@ -987,7 +987,7 @@ NGEmptyExpression {
987987
> 2 |
988988
| ^
989989
> 3 | // comment
990-
| ^^^^^^^^^^^^
990+
| ^^^^^^^^^^^
991991
--------------------------------------------------------------------------------
992992
CommentLine {
993993
"value": " comment"
@@ -1017,7 +1017,7 @@ NGEmptyExpression {
10171017
> 2 |
10181018
| ^
10191019
> 3 | // comment
1020-
| ^^^^^^^^^^^^
1020+
| ^^^^^^^^^^^
10211021
--------------------------------------------------------------------------------
10221022
CommentLine {
10231023
"value": " comment"
@@ -1039,7 +1039,7 @@ NGEmptyExpression {
10391039
> 2 |
10401040
| ^
10411041
> 3 | // comment
1042-
| ^^^^^^^^^^^^
1042+
| ^^^^^^^^^^^
10431043
--------------------------------------------------------------------------------
10441044
CommentLine {
10451045
"value": " comment"
@@ -1069,7 +1069,7 @@ NGEmptyExpression {
10691069
> 2 |
10701070
| ^
10711071
> 3 | // comment
1072-
| ^^^^^^^^^^^^
1072+
| ^^^^^^^^^^^
10731073
--------------------------------------------------------------------------------
10741074
CommentLine {
10751075
"value": " comment"
@@ -1091,7 +1091,7 @@ NGEmptyExpression {
10911091
> 2 |
10921092
| ^
10931093
> 3 | // comment
1094-
| ^^^^^^^^^^^^
1094+
| ^^^^^^^^^^^
10951095
--------------------------------------------------------------------------------
10961096
CommentLine {
10971097
"value": " comment"

tests/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function snapshotAst(ast: any, source: string) {
9494
}, {});
9595
const fixColumn = (p: { line: number; column: number }) => ({
9696
line: p.line + 1,
97-
column: p.column + 1,
97+
column: p.column,
9898
});
9999
const [start, end] = [node.start, node.end].map((index) =>
100100
fixColumn(linesAndColumns.locationForIndex(index)!),

0 commit comments

Comments
 (0)