Skip to content

Commit d70aecd

Browse files
committed
Add test for SpreadElement in calls
1 parent d09762f commit d70aecd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/transform.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ const testCases: TestCase[] = [
165165
expectedEstreeType: 'OptionalCallExpression',
166166
text: ' a ( 1 )?.( 2 ) ',
167167
},
168+
{
169+
expectedAngularType: 'SafeCall',
170+
expectedEstreeType: 'OptionalCallExpression',
171+
text: '( ( ( ( a ) ) ?.( ... ( ( b ) ) ) ) )',
172+
},
168173
{
169174
expectedAngularType: 'KeyedRead',
170175
expectedEstreeType: 'MemberExpression',

0 commit comments

Comments
 (0)