Skip to content

Commit

Permalink
test(validator): add modelKey
Browse files Browse the repository at this point in the history
  • Loading branch information
dolymood committed Aug 20, 2018
1 parent 61f8219 commit 7742c1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/specs/validator.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ describe('Validator', () => {
const validatingHandler = sinon.spy()
const validatedHandler = sinon.spy()
vm = createValidator({
model: '',
model: {
value: ''
},
modelKey: 'value',
rules: {
required: true,
asyncRule: () => {
Expand Down

0 comments on commit 7742c1b

Please sign in to comment.