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

Test fails in IE: TypeError: Unable to get property 'documentMode' of undefined or null reference #4931

Closed
@evgenyneu

Description

@evgenyneu

Hi, I get my test failing in all IE versions. AngularJS version is 1.2.1 stable.

Error message is

TypeError: Unable to get property 'documentMode' of undefined or null reference.
angular.js:12590:7

Here is a plunk: http://plnkr.co/edit/bwum5GA1HOm0xrzYHlBi?p=preview

It fails only when I use $interpolate service AND when I mock services in test:

beforeEach(function() {
  angular.mock.module(function($provide) {
    $provide.value('$window', {});
    return null;
  });
}

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions