Browse Source

NodeUtils tests

sanex3339 9 năm trước cách đây
mục cha
commit
7256ba8f86
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      test/NodeUtils.spec.ts

+ 1 - 1
test/NodeUtils.spec.ts

@@ -86,7 +86,7 @@ describe('NodeUtils', () => {
         });
 
         it('should return block-scope node of given node by given index if node has block-scope', () => {
-            assert.deepEqual(NodeUtils.getBlockScopeNodeByIndex(blockStatementNode, 0), identifierNode);
+            assert.deepEqual(NodeUtils.getBlockScopeNodeByIndex(blockStatementNode), identifierNode);
             assert.deepEqual(NodeUtils.getBlockScopeNodeByIndex(blockStatementNode, 1), literalNode);
         });