fix(testrunner): xdescribe.skip should be a no-op

This commit is contained in:
Andrey Lushnikov 2019-12-19 00:46:03 -08:00 committed by GitHub
parent c172a7e7e0
commit 2acf36debc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,7 @@ class TestRunner extends EventEmitter {
this.fdescribe = this._addSuite.bind(this, TestMode.Focus);
this.fdescribe.skip = () => this.fdescribe; // no-op
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.skip = condition => condition ? this.xit : this.it;