-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm unit test failed on vue form inputs bound #2
Comments
Hi @Lysander686, I had the same issue. Here is the fix that I came up with. it('should have form inputs bound with data model', () => {
...
fieldUsername.setValue(username)
fieldEmailAddress.setValue(emailAddress)
fieldPassword.setValue(password)
expect(wrapper.vm.form.username).toEqual(username)
expect(wrapper.vm.form.emailAddress).toEqual(emailAddress)
expect(wrapper.vm.form.password).toEqual(password)
}) I hope that helps. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
err.log
Basically all unit tests failed at vue form data bound .
git commit log: 70d9be6
commit msg: implement e2e tests of login and register
The text was updated successfully, but these errors were encountered: