Skip to content

Commit c2788b8

Browse files
committed
chore: Fix tests
1 parent 40c3587 commit c2788b8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/__tests__/parse-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ describe('parse', () => {
6666
],
6767
},
6868
}),
69-
).toThrowError(/.*Unexpected token \(1:13\).*/);
69+
).toThrowError(/.*Missing initializer in const declaration. \(1:13\).*/);
7070
});
7171

7272
it('supports custom parserOptions without plugins', () => {

src/utils/__tests__/__snapshots__/getMembers-test.js.snap

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)