Fixed test failure in Safari 8

This commit is contained in:
Steve Gravrock
2021-04-10 22:18:58 -07:00
parent 5f9315731e
commit dad5f5fd6b

View File

@@ -90,7 +90,7 @@ describe('SpyStrategy', function() {
expect(function() { expect(function() {
spyStrategy.exec(); spyStrategy.exec();
}).toThrow({ code: 'ESRCH' }); }).toThrow(jasmine.objectContaining({ code: 'ESRCH' }));
expect(originalFn).not.toHaveBeenCalled(); expect(originalFn).not.toHaveBeenCalled();
}); });