Liferay.Loader.define("@liferay/analytics-settings-web@5.0.51/js/components/__tests__/Loading.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","../Loading"],(function(e,t,n){window;{n("@liferay!analytics-settings-web$testing-library/jest-dom/extend-expect");var a=n("@liferay!analytics-settings-web$testing-library/react"),i=_interopRequireDefault(n("liferay!frontend-js-react-web$react")),r=_interopRequireDefault(n("../Loading"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}describe("Loading",(()=>{it("renders Loading component without crashing",(async()=>{const{container:e}=(0,a.render)(i.default.createElement(r.default,null)),t=e.querySelector("span.loading-animation"),n=a.screen.getByTestId("loading");expect(n).toBeInTheDocument(),expect(n.contains(t)).toBe(!0)})),it('renders Loading component with "inline" className',(()=>{(0,a.render)(i.default.createElement(r.default,{inline:!0}));const e=a.screen.getByTestId("loading");expect(e).toHaveClass("inline-item inline-item-before")})),it('rendes Loading component with "loading-absolute" className',(()=>{const{container:e}=(0,a.render)(i.default.createElement(r.default,{absolute:!0})),t=e.querySelector("span.loading-animation"),n=a.screen.getByTestId("loading");expect(n).toBeInTheDocument(),expect(n.contains(t)).toBe(!0),expect(t).toHaveClass("loading-absolute")})),it("renders Loading component with new style",(()=>{(0,a.render)(i.default.createElement(r.default,{style:{backgroundColor:"orange"}}));const e=a.screen.getByTestId("loading");expect(e).toHaveAttribute("style","background-color: orange;")}))}))}}));
//# sourceMappingURL=Loading.spec.js.map