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

Commit

Permalink
test($location): ensure mock window can be wrapped by jqLite
Browse files Browse the repository at this point in the history
Fixin da build

Closes #12086
  • Loading branch information
caitp committed Jun 11, 2015
1 parent 1105513 commit 571bee7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/ng/locationSpec.js
Expand Up @@ -2330,6 +2330,9 @@ describe('$location', function() {
$windowProvider.$get = function() {
var win = {};
angular.extend(win, window);
// Ensure `window` is a reference to the mock global object, so that
// jqLite does the right thing.
win.window = win;
win.history = {
state: options.state || null,
replaceState: function(state, title, url) {
Expand Down

0 comments on commit 571bee7

Please sign in to comment.