test: fix utils test

This commit is contained in:
Evan You 2021-09-24 12:34:31 -04:00
parent fc85ad28ae
commit 7b7e28ad6a

View File

@ -163,7 +163,7 @@ export const isMemberExpressionBrowser = (path: string): boolean => {
} }
export const isMemberExpressionNode = __BROWSER__ export const isMemberExpressionNode = __BROWSER__
? NOOP ? (NOOP as any as (path: string, context: TransformContext) => boolean)
: (path: string, context: TransformContext): boolean => { : (path: string, context: TransformContext): boolean => {
try { try {
let ret: Expression = parseExpression(path, { let ret: Expression = parseExpression(path, {