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', () => {
66
66
] ,
67
67
} ,
68
68
} ) ,
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 \) .* / ) ;
70
70
} ) ;
71
71
72
72
it ( 'supports custom parserOptions without plugins' , ( ) => {
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ Array [
12
12
" column" : 12 ,
13
13
" line" : 1 ,
14
14
},
15
+ " filename" : undefined ,
16
+ " identifierName" : undefined ,
15
17
" start" : Position {
16
18
" column" : 9 ,
17
19
" line" : 1 ,
@@ -31,6 +33,8 @@ Array [
31
33
" column" : 8 ,
32
34
" line" : 1 ,
33
35
},
36
+ " filename" : undefined ,
37
+ " identifierName" : undefined ,
34
38
" start" : Position {
35
39
" column" : 1 ,
36
40
" line" : 1 ,
@@ -43,6 +47,7 @@ Array [
43
47
" column" : 4 ,
44
48
" line" : 1 ,
45
49
},
50
+ " filename" : undefined ,
46
51
" identifierName" : " foo" ,
47
52
" start" : Position {
48
53
" column" : 1 ,
@@ -53,13 +58,15 @@ Array [
53
58
" start" : 1 ,
54
59
" type" : " Identifier" ,
55
60
},
61
+ " optional" : false ,
56
62
" property" : Node {
57
63
" end" : 8 ,
58
64
" loc" : SourceLocation {
59
65
" end" : Position {
60
66
" column" : 8 ,
61
67
" line" : 1 ,
62
68
},
69
+ " filename" : undefined ,
63
70
" identifierName" : " bar" ,
64
71
" start" : Position {
65
72
" column" : 5 ,
@@ -79,11 +86,14 @@ Array [
79
86
" column" : 13 ,
80
87
" line" : 1 ,
81
88
},
89
+ " filename" : undefined ,
90
+ " identifierName" : undefined ,
82
91
" start" : Position {
83
92
" column" : 1 ,
84
93
" line" : 1 ,
85
94
},
86
95
},
96
+ " optional" : false ,
87
97
" start" : 1 ,
88
98
" type" : " CallExpression" ,
89
99
},
@@ -95,6 +105,7 @@ Array [
95
105
" column" : 8 ,
96
106
" line" : 1 ,
97
107
},
108
+ " filename" : undefined ,
98
109
" identifierName" : " bar" ,
99
110
" start" : Position {
100
111
" column" : 5 ,
@@ -116,6 +127,7 @@ Array [
116
127
" column" : 22 ,
117
128
" line" : 1 ,
118
129
},
130
+ " filename" : undefined ,
119
131
" identifierName" : " baz" ,
120
132
" start" : Position {
121
133
" column" : 19 ,
@@ -137,6 +149,8 @@ Array [
137
149
" column" : 26 ,
138
150
" line" : 1 ,
139
151
},
152
+ " filename" : undefined ,
153
+ " identifierName" : undefined ,
140
154
" start" : Position {
141
155
" column" : 24 ,
142
156
" line" : 1 ,
You can’t perform that action at this time.
0 commit comments