@wix/entity-advanced-permissions 1.828.0 → 1.830.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/EmptyState/EmptyState.spec.js +2 -2
- package/dist/cjs/components/EmptyState/EmptyState.spec.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.js +504 -504
- package/dist/statics/entity-advanced-permissions.umd.js.map +1 -1
- package/dist/statics/entity-advanced-permissions.umd.min.js +2 -2
- package/dist/statics/entity-advanced-permissions.umd.min.js.map +1 -1
- package/dist/statics/manifest.json +2 -2
- package/dist/statics/manifest.min.json +2 -2
- package/package.json +7 -7
|
@@ -27,7 +27,7 @@ describe('Test Empty State component', () => {
|
|
|
27
27
|
expect(getByText('description test')).toBeTruthy();
|
|
28
28
|
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
expect(container == null
|
|
30
|
+
expect(container == null || (_container$firstChild = container.firstChild) == null ? void 0 : _container$firstChild.className).toContain('CustomClass');
|
|
31
31
|
});
|
|
32
32
|
it('decodes properly', () => {
|
|
33
33
|
const {
|
|
@@ -72,7 +72,7 @@ describe('Test Empty State component', () => {
|
|
|
72
72
|
})));
|
|
73
73
|
|
|
74
74
|
// @ts-ignore
|
|
75
|
-
expect(container == null
|
|
75
|
+
expect(container == null || (_container$firstChild2 = container.firstChild) == null ? void 0 : _container$firstChild2.className).toContain('--mobile');
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
78
|
//# sourceMappingURL=EmptyState.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_react2","_EmptyState","_wixUiTpa","_jsxFileName","describe","it","_container$firstChild","getByText","container","render","default","createElement","mainTitle","description","className","__self","__source","fileName","lineNumber","columnNumber","expect","toBeTruthy","firstChild","toContain","_container$firstChild2","debug","TPAComponentsProvider","value","mobile"],"sources":["../../../../src/components/EmptyState/EmptyState.spec.tsx"],"sourcesContent":["import React from 'react';\nimport { render, fireEvent } from '@testing-library/react';\nimport EmptyState from './EmptyState.tsx';\nimport { TPAComponentsProvider } from 'wix-ui-tpa';\n\ndescribe('Test Empty State component', () => {\n it('renders properly', () => {\n const { getByText, container } = render(\n <EmptyState\n mainTitle={'Main title text'}\n description={'description test'}\n className={'CustomClass'}\n />,\n );\n\n expect(getByText('Main title text')).toBeTruthy();\n expect(getByText('description test')).toBeTruthy();\n\n // @ts-ignore\n expect(container?.firstChild?.className).toContain('CustomClass');\n });\n\n it('decodes properly', () => {\n const { getByText } = render(\n <EmptyState\n mainTitle={'Main title ≠'}\n description={'description ≠'}\n />,\n );\n\n expect(getByText('Main title ≠')).toBeTruthy();\n expect(getByText('description ≠')).toBeTruthy();\n });\n\n it('Mobile class added', () => {\n const { container, debug } = render(\n <TPAComponentsProvider value={{ mobile: true }}>\n <EmptyState mainTitle={'Main title'} description={'description'} />\n </TPAComponentsProvider>,\n );\n\n // @ts-ignore\n expect(container?.firstChild?.className).toContain('--mobile');\n });\n});\n"],"mappings":";;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AAAmD,IAAAI,YAAA;AAEnDC,QAAQ,CAAC,4BAA4B,EAAE,MAAM;EAC3CC,EAAE,CAAC,kBAAkB,EAAE,MAAM;IAAA,IAAAC,qBAAA;IAC3B,MAAM;MAAEC,SAAS;MAAEC;IAAU,CAAC,GAAG,IAAAC,cAAM,gBACrCZ,MAAA,CAAAa,OAAA,CAAAC,aAAA,CAACV,WAAA,CAAAS,OAAU;MACTE,SAAS,EAAE,iBAAkB;MAC7BC,WAAW,EAAE,kBAAmB;MAChCC,SAAS,EAAE,aAAc;MAAAC,MAAA;MAAAC,QAAA;QAAAC,QAAA,EAAAd,YAAA;QAAAe,UAAA;QAAAC,YAAA;MAAA;IAAA,CAC1B,CACH,CAAC;IAEDC,MAAM,CAACb,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAACc,UAAU,CAAC,CAAC;IACjDD,MAAM,CAACb,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAACc,UAAU,CAAC,CAAC;;IAElD;IACAD,MAAM,CAACZ,SAAS,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_react2","_EmptyState","_wixUiTpa","_jsxFileName","describe","it","_container$firstChild","getByText","container","render","default","createElement","mainTitle","description","className","__self","__source","fileName","lineNumber","columnNumber","expect","toBeTruthy","firstChild","toContain","_container$firstChild2","debug","TPAComponentsProvider","value","mobile"],"sources":["../../../../src/components/EmptyState/EmptyState.spec.tsx"],"sourcesContent":["import React from 'react';\nimport { render, fireEvent } from '@testing-library/react';\nimport EmptyState from './EmptyState.tsx';\nimport { TPAComponentsProvider } from 'wix-ui-tpa';\n\ndescribe('Test Empty State component', () => {\n it('renders properly', () => {\n const { getByText, container } = render(\n <EmptyState\n mainTitle={'Main title text'}\n description={'description test'}\n className={'CustomClass'}\n />,\n );\n\n expect(getByText('Main title text')).toBeTruthy();\n expect(getByText('description test')).toBeTruthy();\n\n // @ts-ignore\n expect(container?.firstChild?.className).toContain('CustomClass');\n });\n\n it('decodes properly', () => {\n const { getByText } = render(\n <EmptyState\n mainTitle={'Main title ≠'}\n description={'description ≠'}\n />,\n );\n\n expect(getByText('Main title ≠')).toBeTruthy();\n expect(getByText('description ≠')).toBeTruthy();\n });\n\n it('Mobile class added', () => {\n const { container, debug } = render(\n <TPAComponentsProvider value={{ mobile: true }}>\n <EmptyState mainTitle={'Main title'} description={'description'} />\n </TPAComponentsProvider>,\n );\n\n // @ts-ignore\n expect(container?.firstChild?.className).toContain('--mobile');\n });\n});\n"],"mappings":";;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA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