Skip to content

Commit 8c1f462

Browse files
committed
updated abstractField test, seems the field.formOptions wasn't being 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.
1 parent 5756317 commit 8c1f462

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit/specs/fields/abstractField.spec.js

+2
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ describe("abstractField.vue", () => {
213213

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

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

0 commit comments

Comments
 (0)