Skip to content

Commit

Permalink
RFR - just test render was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelSuwinski committed May 23, 2024
1 parent 678b33e commit d1b8101
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 126 deletions.
2 changes: 1 addition & 1 deletion src/AdminGuesser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ describe('<AdminGuesser />', () => {
/>,
);

expect(renderer.getRenderOutput()).toMatchSnapshot();
expect(renderer.getRenderOutput()).not.toBeNull();
});
});
125 changes: 0 additions & 125 deletions src/__snapshots__/AdminGuesser.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,131 +2,6 @@

exports[`<AdminGuesser /> renders loading 1`] = `<Loading />`;

exports[`<AdminGuesser /> renders with admin element 1`] = `
<ErrorBoundary
fallbackRender={[Function]}
onError={[Function]}
>
<AdminGuesser
admin={[Function]}
dataProvider={
{
"create": [Function],
"delete": [Function],
"deleteMany": [Function],
"getList": [Function],
"getMany": [Function],
"getManyReference": [Function],
"getOne": [Function],
"introspect": [Function],
"subscribe": [Function],
"unsubscribe": [Function],
"update": [Function],
"updateMany": [Function],
}
}
i18nProvider={
{
"changeLocale": [Function],
"getLocale": [Function],
"getLocales": [Function],
"translate": [Function],
}
}
schemaAnalyzer={
{
"getFieldNameFromSchema": [Function],
"getFieldType": [Function],
"getFiltersParametersFromSchema": [Function],
"getOrderParametersFromSchema": [Function],
"getSubmissionErrors": [Function],
}
}
theme={
{
"components": {
"MuiAutocomplete": {
"variants": [
{
"props": {},
"style": [Function],
},
],
},
"MuiFilledInput": {
"styleOverrides": {
"root": {
"&$disabled": {
"backgroundColor": "rgba(0, 0, 0, 0.04)",
},
"backgroundColor": "rgba(0, 0, 0, 0.04)",
},
},
},
"MuiFormControl": {
"defaultProps": {
"margin": "dense",
"size": "small",
"variant": "filled",
},
},
"MuiTextField": {
"defaultProps": {
"margin": "dense",
"size": "small",
"variant": "filled",
},
"variants": [
{
"props": {},
"style": [Function],
},
],
},
"RaMenuItemLink": {
"styleOverrides": {
"root": {
"&.RaMenuItemLink-active": {
"borderLeft": "3px solid #38a9b4",
},
"borderLeft": "3px solid #fff",
},
},
},
},
"palette": {
"background": {
"default": "#fafafb",
},
"mode": "light",
"primary": {
"contrastText": "#ffffff",
"dark": "#006a75",
"light": "#74dde7",
"main": "#38a9b4",
},
"secondary": {
"contrastText": "#fff",
"dark": "#0069c0",
"light": "#6ec6ff",
"main": "#288690",
},
},
"sidebar": {
"closedWidth": 50,
"width": 240,
},
"typography": {
"h6": {
"fontWeight": 400,
},
},
}
}
/>
</ErrorBoundary>
`;

exports[`<AdminGuesser /> renders with custom resources 1`] = `
<AdminUI
dataProvider={
Expand Down

0 comments on commit d1b8101

Please sign in to comment.