Skip to content

Commit

Permalink
Move className() back to TestCase
Browse files Browse the repository at this point in the history
According to a best effort spec, it only exists here.

See https://github.com/testmoapp/junitxml.
  • Loading branch information
davidparsson committed Feb 1, 2024
1 parent 3bf8d6a commit 8ab988e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions src/test_case.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ class TestCase extends TestNode {
this._errorContent = undefined;
}

/**
* @param {string} className
* @returns {TestCase}
* @chainable
*/
className(className) {
this._attributes.classname = className;
return this;
}

/**
* @param {string} filepath
* @returns {TestCase}
Expand Down
10 changes: 0 additions & 10 deletions src/test_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ class TestNode {
return this;
}

/**
* @param {string} className
* @returns {TestNode}
* @chainable
*/
className(className) {
this._attributes.classname = className;
return this;
}

/**
* @param {string} name
* @returns {TestNode}
Expand Down

0 comments on commit 8ab988e

Please sign in to comment.