Merge branch 'fix/pending-reason' of https://github.com/jan-molak/jasmine into main
* Fixes missing pendingReason in pending spec results * Fixes #1939 * Merges #1940 from @jan-molak
This commit is contained in:
@@ -991,7 +991,7 @@ x */
|
|||||||
if (this.message) {
|
if (this.message) {
|
||||||
this.excludeMessage = message;
|
this.excludeMessage = message;
|
||||||
}
|
}
|
||||||
this.pend();
|
this.pend(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
Spec.prototype.getResult = function() {
|
Spec.prototype.getResult = function() {
|
||||||
|
|||||||
@@ -274,6 +274,18 @@ describe('Env', function() {
|
|||||||
expect(excludeSpy).toHaveBeenCalledWith('Temporarily disabled with xit');
|
expect(excludeSpy).toHaveBeenCalledWith('Temporarily disabled with xit');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('calls spec.pend with "Temporarily disabled with xit"', function() {
|
||||||
|
var pendSpy = jasmine.createSpy();
|
||||||
|
var realExclude = jasmineUnderTest.Spec.prototype.exclude;
|
||||||
|
|
||||||
|
spyOn(env, 'it').and.returnValue({
|
||||||
|
exclude: realExclude,
|
||||||
|
pend: pendSpy
|
||||||
|
});
|
||||||
|
env.xit('foo', function() {});
|
||||||
|
expect(pendSpy).toHaveBeenCalledWith('Temporarily disabled with xit');
|
||||||
|
});
|
||||||
|
|
||||||
it('throws an error when it receives a non-fn argument', function() {
|
it('throws an error when it receives a non-fn argument', function() {
|
||||||
expect(function() {
|
expect(function() {
|
||||||
env.xit('undefined arg', null);
|
env.xit('undefined arg', null);
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ x */
|
|||||||
if (this.message) {
|
if (this.message) {
|
||||||
this.excludeMessage = message;
|
this.excludeMessage = message;
|
||||||
}
|
}
|
||||||
this.pend();
|
this.pend(message);
|
||||||
};
|
};
|
||||||
|
|
||||||
Spec.prototype.getResult = function() {
|
Spec.prototype.getResult = function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user