Fix exceptions when running grunt test --debug

This commit is contained in:
Ben Alpert
2015-06-17 20:57:04 -07:00
parent c265504fe2
commit d76e3e1632
2 changed files with 4 additions and 2 deletions
@@ -20,7 +20,7 @@ describe('ReactMount', function() {
var WebComponents = WebComponents;
try {
if (WebComponents === undefined && jest !== undefined) {
if (WebComponents === undefined && typeof jest !== 'undefined') {
WebComponents = require('WebComponents');
}
} catch(e) {
+3 -1
View File
@@ -6374,4 +6374,6 @@ CustomElements.addModule(function(scope) {
window.Platform = scope;
})(window.WebComponents);
module.exports = window.WebComponents;
if (typeof exports !== 'undefined') {
module.exports = window.WebComponents;
}