Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec4ce2 commit 07ef166Copy full SHA for 07ef166
src/ngMock/angular-mocks.js
@@ -640,6 +640,7 @@ angular.mock.createMockWindow = function() {
640
var mockWindow = {};
641
var setTimeoutQueue = [];
642
643
+ mockWindow.location = window.location;
644
mockWindow.document = window.document;
645
mockWindow.getComputedStyle = angular.bind(window, window.getComputedStyle);
646
mockWindow.scrollTo = angular.bind(window, window.scrollTo);
0 commit comments