Skip to content

Commit 1874c94

Browse files
committed
Fix typos
1 parent 18b2ec4 commit 1874c94

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/Form_test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ describeRepeated("Form common", createFormComponent => {
787787
const { comp, node } = createFormComponent({ schema });
788788

789789
Simulate.click(node.querySelector(".array-item-add button"));
790-
Simulate.Simulate.submit(node);
790+
Simulate.submit(node);
791791

792792
expect(comp.state.formData).eql({
793793
object: {
@@ -846,7 +846,7 @@ describeRepeated("Form common", createFormComponent => {
846846
onError,
847847
});
848848

849-
Simulate.Simulate.submit(node);
849+
Simulate.submit(node);
850850

851851
sinon.assert.notCalled(onSubmit);
852852
});
@@ -950,7 +950,7 @@ describeRepeated("Form common", createFormComponent => {
950950
const onError = sandbox.spy();
951951
const { node } = createFormComponent({ schema, formData, onError });
952952

953-
Simulate.Simulate.submit(node);
953+
Simulate.submit(node);
954954

955955
sinon.assert.calledOnce(onError);
956956
});
@@ -1338,10 +1338,10 @@ describeRepeated("Form common", createFormComponent => {
13381338
Simulate.change(node.querySelectorAll("input[type=text]")[1], {
13391339
target: { value: "fixed error too" },
13401340
});
1341-
Simulate.Simulate.submit(node);
1341+
Simulate.submit(node);
13421342

13431343
// No error remaining, shouldn't throw.
1344-
Simulate.Simulate.submit(node);
1344+
Simulate.submit(node);
13451345

13461346
expect(node.querySelectorAll(".field-error")).to.have.length.of(0);
13471347
});
@@ -1406,7 +1406,7 @@ describeRepeated("Form common", createFormComponent => {
14061406
Simulate.change(node.querySelector("input[type=text]"), {
14071407
target: { value: "short" },
14081408
});
1409-
Simulate.Simulate.submit(node);
1409+
Simulate.submit(node);
14101410

14111411
expect(comp.state.errorSchema).eql({});
14121412
});
@@ -1428,7 +1428,7 @@ describeRepeated("Form common", createFormComponent => {
14281428
Simulate.change(node.querySelector("input[type=text]"), {
14291429
target: { value: "short" },
14301430
});
1431-
Simulate.Simulate.submit(node);
1431+
Simulate.submit(node);
14321432

14331433
expect(comp.state.errorSchema).eql({
14341434
__errors: ["should NOT be shorter than 8 characters"],
@@ -1442,7 +1442,7 @@ describeRepeated("Form common", createFormComponent => {
14421442
Simulate.change(node.querySelector("input[type=text]"), {
14431443
target: { value: "short" },
14441444
});
1445-
Simulate.Simulate.submit(node);
1445+
Simulate.submit(node);
14461446

14471447
sinon.assert.calledWithMatch(
14481448
onError,
@@ -1465,7 +1465,7 @@ describeRepeated("Form common", createFormComponent => {
14651465
Simulate.change(node.querySelector("input[type=text]"), {
14661466
target: { value: "short" },
14671467
});
1468-
Simulate.Simulate.submit(node);
1468+
Simulate.submit(node);
14691469

14701470
expect(comp.state.errorSchema).eql({
14711471
__errors: ["should NOT be shorter than 8 characters"],
@@ -1476,7 +1476,7 @@ describeRepeated("Form common", createFormComponent => {
14761476
Simulate.change(node.querySelector("input[type=text]"), {
14771477
target: { value: "long enough" },
14781478
});
1479-
Simulate.Simulate.submit(node);
1479+
Simulate.submit(node);
14801480

14811481
expect(comp.state.errorSchema).eql({});
14821482
expect(comp.state.errors).eql([]);
@@ -2421,7 +2421,7 @@ describe("Form omitExtraData and liveOmit", () => {
24212421
foo: "",
24222422
});
24232423

2424-
Simulate.Simulate.submit(node);
2424+
Simulate.submit(node);
24252425

24262426
sinon.assert.calledOnce(comp.getUsedFormData);
24272427
});

0 commit comments

Comments
 (0)