Skip to content

Commit 9662b01

Browse files
committed
Replace test by it
1 parent eacf02c commit 9662b01

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

packages/ra-ui-materialui/src/input/AutocompleteArrayInput.spec.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ describe('<AutocompleteArrayInput />', () => {
752752
expect(queryByRole('progressbar')).toBeNull();
753753
});
754754

755-
test('should support creation of a new choice through the onCreate event', async () => {
755+
it('should support creation of a new choice through the onCreate event', async () => {
756756
const choices = [
757757
{ id: 'ang', name: 'Angular' },
758758
{ id: 'rea', name: 'React' },
@@ -807,7 +807,7 @@ describe('<AutocompleteArrayInput />', () => {
807807
expect(queryByText('New Kid On The Block')).not.toBeNull();
808808
});
809809

810-
test('should support creation of a new choice through the onCreate event with a promise', async () => {
810+
it('should support creation of a new choice through the onCreate event with a promise', async () => {
811811
const choices = [
812812
{ id: 'ang', name: 'Angular' },
813813
{ id: 'rea', name: 'React' },
@@ -865,7 +865,7 @@ describe('<AutocompleteArrayInput />', () => {
865865
expect(queryByText('New Kid On The Block')).not.toBeNull();
866866
});
867867

868-
test('should support creation of a new choice through the create element', async () => {
868+
it('should support creation of a new choice through the create element', async () => {
869869
const choices = [
870870
{ id: 'ang', name: 'Angular' },
871871
{ id: 'rea', name: 'React' },

packages/ra-ui-materialui/src/input/SelectArrayInput.spec.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ describe('<SelectArrayInput />', () => {
195195
const option2 = getByText('React');
196196
expect(option2.getAttribute('aria-disabled')).toEqual('true');
197197
});
198+
198199
it('should translate the choices', () => {
199200
const { getByRole, queryByText } = render(
200201
<TestTranslationProvider translate={x => `**${x}**`}>
@@ -312,7 +313,7 @@ describe('<SelectArrayInput />', () => {
312313
});
313314
});
314315

315-
test('should support creation of a new choice through the onCreate event', async () => {
316+
it('should support creation of a new choice through the onCreate event', async () => {
316317
const choices = [...defaultProps.choices];
317318
const newChoice = { id: 'js_fatigue', name: 'New Kid On The Block' };
318319

@@ -347,7 +348,7 @@ describe('<SelectArrayInput />', () => {
347348
expect(queryAllByText(newChoice.name).length).toEqual(2);
348349
});
349350

350-
test('should support creation of a new choice through the onCreate event with a promise', async () => {
351+
it('should support creation of a new choice through the onCreate event with a promise', async () => {
351352
const choices = [...defaultProps.choices];
352353
const newChoice = { id: 'js_fatigue', name: 'New Kid On The Block' };
353354

@@ -389,7 +390,7 @@ describe('<SelectArrayInput />', () => {
389390
});
390391
});
391392

392-
test('should support creation of a new choice through the create element', async () => {
393+
it('should support creation of a new choice through the create element', async () => {
393394
const choices = [...defaultProps.choices];
394395
const newChoice = { id: 'js_fatigue', name: 'New Kid On The Block' };
395396

packages/ra-ui-materialui/src/input/SelectInput.spec.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ describe('<SelectInput />', () => {
503503
expect(queryByRole('progressbar')).toBeNull();
504504
});
505505

506-
test('should support creation of a new choice through the onCreate event', async () => {
506+
it('should support creation of a new choice through the onCreate event', async () => {
507507
const choices = [...defaultProps.choices];
508508
const newChoice = { id: 'js_fatigue', name: 'New Kid On The Block' };
509509

@@ -541,7 +541,7 @@ describe('<SelectInput />', () => {
541541
).not.toBeNull();
542542
});
543543

544-
test('should support creation of a new choice through the onCreate event with a promise', async () => {
544+
it('should support creation of a new choice through the onCreate event with a promise', async () => {
545545
const choices = [...defaultProps.choices];
546546
const newChoice = { id: 'js_fatigue', name: 'New Kid On The Block' };
547547

@@ -585,7 +585,7 @@ describe('<SelectInput />', () => {
585585
});
586586
});
587587

588-
test('should support creation of a new choice through the create element', async () => {
588+
it('should support creation of a new choice through the create element', async () => {
589589
const choices = [...defaultProps.choices];
590590
const newChoice = { id: 'js_fatigue', name: 'New Kid On The Block' };
591591

0 commit comments

Comments
 (0)