mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
NodeUtils tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user