Test now uses callExpressionKw not positional

This commit is contained in:
Adam Chalmers
2025-01-14 10:08:02 -06:00
committed by Nick Cameron
parent 440173d045
commit 84cd2c0c88

View File

@ -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,