Skip to content

Commit

Permalink
updated abstractField test, seems the field.formOptions wasn't bein…
Browse files Browse the repository at this point in the history
…g updated, the `this.$parent.options` reference was required here ... but it does work properly when using the fields client-side, so it's an issue with how the test is defined and not with how the component is written.
  • Loading branch information
zoul0813 committed Dec 21, 2018
1 parent 5756317 commit 8c1f462
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/specs/fields/abstractField.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ describe("abstractField.vue", () => {

it("should call validate function after value changed", () => {
options.validateAfterChanged = true;
// seems to be an issue with how the field is defined, the update to 'options' isn't carried over to field.formOptions
field.formOptions = options;
field.value = "Jane Roe";

expect(field.validate.callCount).to.be.equal(1);
Expand Down

0 comments on commit 8c1f462

Please sign in to comment.