Revert "[Finishes #45476285] Add timeout support to async tests"
This reverts commit 8f5d0beb8c.
Async timeout support is just not ready for prime time.
This commit is contained in:
@@ -15,8 +15,6 @@ describe('Spies', function () {
|
||||
});
|
||||
|
||||
it("warns the user that we indend to overwrite an existing property", function() {
|
||||
TestClass.prototype.someFunction.and = "existing";
|
||||
|
||||
expect(function() {
|
||||
j$.createSpy(TestClass.prototype, TestClass.prototype.someFunction);
|
||||
}).toThrowError("Jasmine spies would overwrite the 'and' and 'calls' properties on the object being spied upon");
|
||||
@@ -25,8 +23,8 @@ describe('Spies', function () {
|
||||
it("adds a spyStrategy and callTracker to the spy", function() {
|
||||
var spy = j$.createSpy(TestClass.prototype, TestClass.prototype.someFunction);
|
||||
|
||||
expect(spy.and).toEqual(jasmine.any(j$.SpyStrategy));
|
||||
expect(spy.calls).toEqual(jasmine.any(j$.CallTracker));
|
||||
expect(spy.and).toEqual(jasmine.any(j$.SpyStrategy);
|
||||
expect(spy.calls).toEqual(jasmine.any(j$.CallTracker);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user