Fixed toHaveSize matcher on IE 10 & 11

This commit is contained in:
Steve Gravrock
2020-04-12 13:43:44 -07:00
parent 78c3a007ad
commit 8991b1bba3
7 changed files with 67 additions and 6 deletions

View File

@@ -43,4 +43,10 @@
env.pending('Browser has incomplete or missing support for Maps');
}
};
env.requireWeakMaps = function() {
if (typeof WeakMap === 'undefined') {
env.pending('Browser does not have support for WeakMap');
}
};
})(jasmine.getEnv());