@samitouri / QOS-React-2 / commits / d76e3e1632

Fix exceptions when running `grunt test --debug`

Ben Alpert committed Jun 17, 2015 at 20:57 UTC d76e3e1632d0748cdede1f4b0af89a37d00e0ae4
2 files changed +4 -2
src/renderers/dom/client/__tests__/ReactMount-test.js
+1 -1
@@ -20,7 +20,7 @@ describe('ReactMount', function() {
20 var WebComponents = WebComponents;
21
22 try {
23 - if (WebComponents === undefined && jest !== undefined) {
23 + if (WebComponents === undefined && typeof jest !== 'undefined') {
24 WebComponents = require('WebComponents');
25 }
26 } catch(e) {
src/shared/vendor/third_party/webcomponents.js
+3 -1
@@ -6374,4 +6374,6 @@ CustomElements.addModule(function(scope) {
6374 window.Platform = scope;
6375 })(window.WebComponents);
6376
6377 -module.exports = window.WebComponents;
6377 +if (typeof exports !== 'undefined') {
6378 + module.exports = window.WebComponents;
6379 +}