fix(testrunner): xdescribe.skip should be a no-op
This commit is contained in:
parent
c172a7e7e0
commit
2acf36debc
|
|
@ -315,7 +315,7 @@ class TestRunner extends EventEmitter {
|
||||||
this.fdescribe = this._addSuite.bind(this, TestMode.Focus);
|
this.fdescribe = this._addSuite.bind(this, TestMode.Focus);
|
||||||
this.fdescribe.skip = () => this.fdescribe; // no-op
|
this.fdescribe.skip = () => this.fdescribe; // no-op
|
||||||
this.xdescribe = this._addSuite.bind(this, TestMode.Skip);
|
this.xdescribe = this._addSuite.bind(this, TestMode.Skip);
|
||||||
this.xdescribe.skip = () => this.fdescribe; // no-op
|
this.xdescribe.skip = () => this.xdescribe; // no-op
|
||||||
|
|
||||||
this.it = this._addTest.bind(this, TestMode.Run);
|
this.it = this._addTest.bind(this, TestMode.Run);
|
||||||
this.it.skip = condition => condition ? this.xit : this.it;
|
this.it.skip = condition => condition ? this.xit : this.it;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue