Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 571bee7

Browse files
committed
test($location): ensure mock window can be wrapped by jqLite
Fixin da build Closes #12086
1 parent 1105513 commit 571bee7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/ng/locationSpec.js

+3
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,9 @@ describe('$location', function() {
23302330
$windowProvider.$get = function() {
23312331
var win = {};
23322332
angular.extend(win, window);
2333+
// Ensure `window` is a reference to the mock global object, so that
2334+
// jqLite does the right thing.
2335+
win.window = win;
23332336
win.history = {
23342337
state: options.state || null,
23352338
replaceState: function(state, title, url) {

0 commit comments

Comments
 (0)