Liferay.Loader.define("@liferay/analytics-settings-web@5.0.51/js/__tests__/App.spec",["module","exports","require","@liferay!analytics-settings-web$testing-library/jest-dom/extend-expect","@liferay!analytics-settings-web$testing-library/react","liferay!frontend-js-react-web$react","../App"],(function(e,t,r){window;{r("@liferay!analytics-settings-web$testing-library/jest-dom/extend-expect");var n=r("@liferay!analytics-settings-web$testing-library/react"),a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("liferay!frontend-js-react-web$react")),i=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("../App"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}const e={connected:!1,liferayAnalyticsURL:"",token:""};describe("App",(()=>{it("renders without crashing",(()=>{const{container:t}=(0,n.render)(a.default.createElement(i.default,e));expect(t.firstChild).toHaveClass("analytics-settings-web")})),it("renders wizard view when not connected",(()=>{const{getAllByTestId:t}=(0,n.render)(a.default.createElement(i.default,e));expect(t(i.EPageView.Wizard)).toBeTruthy()})),it("renders default view when connected",(()=>{const{getAllByTestId:t}=(0,n.render)(a.default.createElement(i.default,_extends({},e,{connected:!0})));expect(t(i.EPageView.Default)).toBeTruthy()}))}))}}));
//# sourceMappingURL=App.spec.js.map