From 38670d89bdb748cbc612de98ff6e7e0a05821a48 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 14 Jan 2020 17:08:18 -0500 Subject: [PATCH] remove node.kind check since this is not necessarily present in ast trees and nodeType is sufficient --- remix-tests/src/testRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remix-tests/src/testRunner.ts b/remix-tests/src/testRunner.ts index 1815ac9238..82b3381814 100644 --- a/remix-tests/src/testRunner.ts +++ b/remix-tests/src/testRunner.ts @@ -35,7 +35,7 @@ function getAvailableFunctions (fileAST: AstNode, testContractName: string) { if(fileAST.nodes && fileAST.nodes.length > 0) { const contractAST: AstNode[] = fileAST.nodes.filter(node => node.name === testContractName && node.nodeType === 'ContractDefinition') if(contractAST.length > 0 && contractAST[0].nodes) { - const funcNodes: AstNode[] = contractAST[0].nodes.filter(node => node.kind === 'function' && node.nodeType === "FunctionDefinition") + const funcNodes: AstNode[] = contractAST[0].nodes.filter(node => node.nodeType === "FunctionDefinition") funcList = funcNodes.map(node => node.name) } }