diff --git a/src/test_group.js b/src/test_group.js index db61c31..fa86153 100755 --- a/src/test_group.js +++ b/src/test_group.js @@ -6,10 +6,10 @@ var { TestNode } = require('./test_node'); class TestGroup extends TestNode { /** * @param {import('./factory').Factory} factory - * @param {string} nodeName + * @param {string} elementName */ - constructor(factory, nodeName) { - super(factory, nodeName); + constructor(factory, elementName) { + super(factory, elementName); this._children = []; } diff --git a/src/test_node.js b/src/test_node.js index c242c3b..93889a5 100644 --- a/src/test_node.js +++ b/src/test_node.js @@ -4,11 +4,11 @@ var _ = require('lodash'); class TestNode { /** * @param {import('./factory').Factory} factory - * @param {string} nodeName + * @param {string} elementName */ - constructor(factory, nodeName) { + constructor(factory, elementName) { this._factory = factory; - this._nodeName = nodeName; + this._elementName = elementName; this._attributes = {}; this._properties = []; } @@ -50,7 +50,7 @@ class TestNode { * @returns {import('xmlbuilder').XMLElement} */ createNode(parentElement) { - return parentElement.ele(this._nodeName, this._attributes); + return parentElement.ele(this._elementName, this._attributes); } /**