Test now uses callExpressionKw not positional
This commit is contained in:
committed by
Nick Cameron
parent
440173d045
commit
84cd2c0c88
@ -281,7 +281,7 @@ describe('testing getNodePathFromSourceRange', () => {
|
|||||||
ast,
|
ast,
|
||||||
topLevelRange(startSourceIndex, startSourceIndex)
|
topLevelRange(startSourceIndex, startSourceIndex)
|
||||||
)
|
)
|
||||||
expect(startResult).toEqual([...expected, ['callee', 'CallExpression']])
|
expect(startResult).toEqual([...expected, ['callee', 'CallExpressionKw']])
|
||||||
// expect similar result when whole line is selected
|
// expect similar result when whole line is selected
|
||||||
const selectWholeThing = getNodePathFromSourceRange(
|
const selectWholeThing = getNodePathFromSourceRange(
|
||||||
ast,
|
ast,
|
||||||
|
Reference in New Issue
Block a user