diff --git a/spec/core/SpyStrategySpec.js b/spec/core/SpyStrategySpec.js index 85624083..b4beabc1 100644 --- a/spec/core/SpyStrategySpec.js +++ b/spec/core/SpyStrategySpec.js @@ -90,7 +90,7 @@ describe('SpyStrategy', function() { expect(function() { spyStrategy.exec(); - }).toThrow({ code: 'ESRCH' }); + }).toThrow(jasmine.objectContaining({ code: 'ESRCH' })); expect(originalFn).not.toHaveBeenCalled(); });