Commit 7dbb2eeb authored by aniket-engg's avatar aniket-engg Committed by Aniket

check if expression exist

parent cc860e89
...@@ -96,7 +96,7 @@ function getAssertMethodLocation (fileAST: AstNode, testContractName: string, fu ...@@ -96,7 +96,7 @@ function getAssertMethodLocation (fileAST: AstNode, testContractName: string, fu
&& e.expression.expression.memberName === assertMethod && e.expression.expression.memberName === assertMethod
&& e.expression.expression.expression.name === 'Assert' && e.expression.expression.expression.name === 'Assert'
) )
location = assetExpression.expression.src location = assetExpression && assetExpression.expression && assetExpression.expression.src
} }
} }
return location return location
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment