Skip to content

Commit 6f0e72d

Browse files
committed
Fix ESLint errors
1 parent c22ace0 commit 6f0e72d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/DateTimeInput.spec.jsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ describe('DateTimeInput', () => {
554554
});
555555

556556
it('jumps to the next field when right arrow is pressed', () => {
557-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
557+
const { container } = render(<DateTimeInput {...defaultProps} />);
558558

559559
const customInputs = container.querySelectorAll('input[data-input]');
560560
const dayInput = customInputs[0];
@@ -571,7 +571,7 @@ describe('DateTimeInput', () => {
571571
});
572572

573573
it('jumps to the next field when date separator key is pressed', () => {
574-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
574+
const { container } = render(<DateTimeInput {...defaultProps} />);
575575

576576
const customInputs = container.querySelectorAll('input[data-input]');
577577
const dayInput = customInputs[0];
@@ -593,7 +593,7 @@ describe('DateTimeInput', () => {
593593
});
594594

595595
it('jumps to the next field when time separator key is pressed', () => {
596-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
596+
const { container } = render(<DateTimeInput {...defaultProps} />);
597597

598598
const customInputs = container.querySelectorAll('input[data-input]');
599599
const dayInput = customInputs[0];
@@ -615,7 +615,7 @@ describe('DateTimeInput', () => {
615615
});
616616

617617
it('does not jump to the next field when right arrow is pressed when the last input is focused', () => {
618-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
618+
const { container } = render(<DateTimeInput {...defaultProps} />);
619619

620620
const select = container.querySelector('select');
621621

@@ -629,7 +629,7 @@ describe('DateTimeInput', () => {
629629
});
630630

631631
it('jumps to the previous field when left arrow is pressed', () => {
632-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
632+
const { container } = render(<DateTimeInput {...defaultProps} />);
633633

634634
const customInputs = container.querySelectorAll('input[data-input]');
635635
const dayInput = customInputs[0];
@@ -646,7 +646,7 @@ describe('DateTimeInput', () => {
646646
});
647647

648648
it('does not jump to the previous field when left arrow is pressed when the first input is focused', () => {
649-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
649+
const { container } = render(<DateTimeInput {...defaultProps} />);
650650

651651
const customInputs = container.querySelectorAll('input[data-input]');
652652
const dayInput = customInputs[0];
@@ -662,7 +662,7 @@ describe('DateTimeInput', () => {
662662
});
663663

664664
it("jumps to the next field when a value which can't be extended to another valid value is entered", () => {
665-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
665+
const { container } = render(<DateTimeInput {...defaultProps} />);
666666

667667
const customInputs = container.querySelectorAll('input[data-input]');
668668
const dayInput = customInputs[0];
@@ -677,7 +677,7 @@ describe('DateTimeInput', () => {
677677
});
678678

679679
it('jumps to the next field when a value as long as the length of maximum value is entered', () => {
680-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
680+
const { container } = render(<DateTimeInput {...defaultProps} />);
681681

682682
const customInputs = container.querySelectorAll('input[data-input]');
683683
const dayInput = customInputs[0];
@@ -692,7 +692,7 @@ describe('DateTimeInput', () => {
692692
});
693693

694694
it('does not jump the next field when a value which can be extended to another valid value is entered', () => {
695-
const { container } = render(<DateTimeInput {...defaultProps} />, { attachTo: container });
695+
const { container } = render(<DateTimeInput {...defaultProps} />);
696696

697697
const customInputs = container.querySelectorAll('input[data-input]');
698698
const dayInput = customInputs[0];

0 commit comments

Comments
 (0)