File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
utils/__tests__/__snapshots__ Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ describe('parse', () => {
6666 ] ,
6767 } ,
6868 } ) ,
69- ) . toThrowError ( / .* U n e x p e c t e d t o k e n \( 1 : 1 3 \) .* / ) ;
69+ ) . toThrowError ( / .* M i s s i n g i n i t i a l i z e r i n c o n s t d e c l a r a t i o n . \( 1 : 1 3 \) .* / ) ;
7070 } ) ;
7171
7272 it ( 'supports custom parserOptions without plugins' , ( ) => {
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Array [
1212 " column" : 12 ,
1313 " line" : 1 ,
1414 },
15+ " filename" : undefined ,
16+ " identifierName" : undefined ,
1517 " start" : Position {
1618 " column" : 9 ,
1719 " line" : 1 ,
@@ -31,6 +33,8 @@ Array [
3133 " column" : 8 ,
3234 " line" : 1 ,
3335 },
36+ " filename" : undefined ,
37+ " identifierName" : undefined ,
3438 " start" : Position {
3539 " column" : 1 ,
3640 " line" : 1 ,
@@ -43,6 +47,7 @@ Array [
4347 " column" : 4 ,
4448 " line" : 1 ,
4549 },
50+ " filename" : undefined ,
4651 " identifierName" : " foo" ,
4752 " start" : Position {
4853 " column" : 1 ,
@@ -53,13 +58,15 @@ Array [
5358 " start" : 1 ,
5459 " type" : " Identifier" ,
5560 },
61+ " optional" : false ,
5662 " property" : Node {
5763 " end" : 8 ,
5864 " loc" : SourceLocation {
5965 " end" : Position {
6066 " column" : 8 ,
6167 " line" : 1 ,
6268 },
69+ " filename" : undefined ,
6370 " identifierName" : " bar" ,
6471 " start" : Position {
6572 " column" : 5 ,
@@ -79,11 +86,14 @@ Array [
7986 " column" : 13 ,
8087 " line" : 1 ,
8188 },
89+ " filename" : undefined ,
90+ " identifierName" : undefined ,
8291 " start" : Position {
8392 " column" : 1 ,
8493 " line" : 1 ,
8594 },
8695 },
96+ " optional" : false ,
8797 " start" : 1 ,
8898 " type" : " CallExpression" ,
8999 },
@@ -95,6 +105,7 @@ Array [
95105 " column" : 8 ,
96106 " line" : 1 ,
97107 },
108+ " filename" : undefined ,
98109 " identifierName" : " bar" ,
99110 " start" : Position {
100111 " column" : 5 ,
@@ -116,6 +127,7 @@ Array [
116127 " column" : 22 ,
117128 " line" : 1 ,
118129 },
130+ " filename" : undefined ,
119131 " identifierName" : " baz" ,
120132 " start" : Position {
121133 " column" : 19 ,
@@ -137,6 +149,8 @@ Array [
137149 " column" : 26 ,
138150 " line" : 1 ,
139151 },
152+ " filename" : undefined ,
153+ " identifierName" : undefined ,
140154 " start" : Position {
141155 " column" : 24 ,
142156 " line" : 1 ,
You can’t perform that action at this time.
0 commit comments