Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into lazy_schema_evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Monteth committed Apr 26, 2024
2 parents 582369c + 794d4d7 commit 124e714
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 1,373 deletions.
541 changes: 0 additions & 541 deletions packages/uniforms-antd/__tests__/SelectField.tsx

Large diffs are not rendered by default.

38 changes: 0 additions & 38 deletions packages/uniforms-bootstrap3/__tests__/_createContext.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/uniforms-bootstrap3/__tests__/_createSchema.ts

This file was deleted.

38 changes: 0 additions & 38 deletions packages/uniforms-bootstrap4/__tests__/_createContext.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/uniforms-bootstrap4/__tests__/_createSchema.ts

This file was deleted.

38 changes: 0 additions & 38 deletions packages/uniforms-bootstrap5/__tests__/_createContext.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/uniforms-bootstrap5/__tests__/_createSchema.ts

This file was deleted.

18 changes: 1 addition & 17 deletions packages/uniforms-material/__tests__/NestField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import FormLabel from '@material-ui/core/FormLabel';
import createMuiTheme from '@material-ui/core/styles/createMuiTheme';
import ThemeProvider from '@material-ui/styles/ThemeProvider/ThemeProvider';
import React from 'react';
import { AutoField, NestField } from 'uniforms-material';
import { NestField } from 'uniforms-material';
import { render } from 'uniforms/__suites__';

import createContext from './_createContext';
Expand Down Expand Up @@ -68,22 +68,6 @@ describe('@RTL - NestField tests', () => {
});
});

test('<NestField> - renders an <AutoField> for each field', () => {
const element = <NestField name="x" />;
const wrapper = mount(
element,
createContext({
x: { type: Object },
'x.a': { type: String },
'x.b': { type: Number },
}),
);

expect(wrapper.find(AutoField)).toHaveLength(2);
expect(wrapper.find(AutoField).at(0).prop('name')).toBe('a');
expect(wrapper.find(AutoField).at(1).prop('name')).toBe('b');
});

test('<NestField> - renders a Subheader', () => {
const element = <NestField name="x" label="y" />;
const wrapper = mount(
Expand Down
Loading

0 comments on commit 124e714

Please sign in to comment.