Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionel Bijaoui committed Oct 18, 2018
1 parent f21b73a commit 96aea0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/specs/fields/fieldSubmit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe("fieldSubmit.vue", () => {
expect(schema.fieldOptions.onSubmit.calledWith(model, schema)).to.be.true;
});

it("should call validate if validateBeforeSubmit is true", () => {
it("should call validate and onSubmit if validateBeforeSubmit is true", () => {
const spyEmit = sinon.spy(wrapper.props().eventBus, "$emit");
schema.fieldOptions.validateBeforeSubmit = true;
schema.fieldOptions.onSubmit = sinon.spy();
Expand Down

0 comments on commit 96aea0c

Please sign in to comment.