Skip to content

Commit

Permalink
refactor: Rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
davidparsson committed Feb 1, 2024
1 parent c405574 commit 19ac2bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test_case.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class TestCase extends TestNode {
* @param {import('xmlbuilder').XMLElement} parentElement
*/
build(parentElement) {
const testCaseElement = this.buildNode(this.createNode(parentElement));
const testCaseElement = this.buildNode(this.createElement(parentElement));
if (this._failure) {
var failureElement = testCaseElement.ele('failure', this._failureAttributes);
if (this._stacktrace) {
Expand Down
4 changes: 2 additions & 2 deletions src/test_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TestNode {
* @param {import('xmlbuilder').XMLElement} parentElement
* @returns {import('xmlbuilder').XMLElement}
*/
createNode(parentElement) {
createElement(parentElement) {
return parentElement.ele(this._elementName, this._attributes);
}

Expand Down Expand Up @@ -103,7 +103,7 @@ class TestNode {
* @param {import('xmlbuilder').XMLElement} parentElement
*/
build(parentElement) {
return this.buildNode(this.createNode(parentElement));
return this.buildNode(this.createElement(parentElement));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/test_suites.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TestSuites extends TestGroup {
* @protected
* @returns {import('xmlbuilder').XMLElement}
*/
createNode() {
createElement() {
const node = xmlBuilder.create('testsuites', { encoding: 'UTF-8', invalidCharReplacement: '' });
Object.keys(this._attributes).forEach((key) => {
node.att(key, this._attributes[key]);
Expand Down

0 comments on commit 19ac2bf

Please sign in to comment.