Skip to content

Commit

Permalink
style: Public methods at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
davidparsson committed Feb 1, 2024
1 parent b9bc41e commit cde4002
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions src/test_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,41 @@ class TestNode {
return this;
}

/**
* @returns {number}
*/
getTestCaseCount() {
throw new Error('Not implemented');
}

/**
* @returns {number}
*/
getFailureCount() {
throw new Error('Not implemented');
}

/**
* @returns {number}
*/
getErrorCount() {
throw new Error('Not implemented');
}

/**
* @returns {number}
*/
getSkippedCount() {
throw new Error('Not implemented');
}

/**
* @param {import('xmlbuilder').XMLElement} [parentElement]
*/
build(parentElement) {
return this.buildNode(this.createElement(parentElement));
}

/**
* @protected
* @param {import('xmlbuilder').XMLElement} [parentElement]
Expand Down Expand Up @@ -86,41 +121,6 @@ class TestNode {
}
return element;
}

/**
* @returns {number}
*/
getTestCaseCount() {
throw new Error('Not implemented');
}

/**
* @returns {number}
*/
getFailureCount() {
throw new Error('Not implemented');
}

/**
* @returns {number}
*/
getErrorCount() {
throw new Error('Not implemented');
}

/**
* @returns {number}
*/
getSkippedCount() {
throw new Error('Not implemented');
}

/**
* @param {import('xmlbuilder').XMLElement} [parentElement]
*/
build(parentElement) {
return this.buildNode(this.createElement(parentElement));
}
}

module.exports = { TestNode: TestNode };

0 comments on commit cde4002

Please sign in to comment.