diff --git a/src/test_case.js b/src/test_case.js index 82bef56..0dc0a42 100755 --- a/src/test_case.js +++ b/src/test_case.js @@ -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} diff --git a/src/test_node.js b/src/test_node.js index a6961b9..c242c3b 100644 --- a/src/test_node.js +++ b/src/test_node.js @@ -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}