Skip to content

Commit b44d9c4

Browse files
caitpnetman92
authored andcommitted
test($location): ensure mock window can be wrapped by jqLite
Fixin da build Closes angular#12086
1 parent 5347e24 commit b44d9c4

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)