We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First use, encountered setData problem.Ask everyone for help. my code: it('setData()方法', () => { const wrapper = mount(Counter) wrapper.setData({foo: 'bar'}) expect(wrapper.vm.foo).to.equal('bar') }) terminal: setData()方法 Counter.vue AssertionError: expected undefined to equal 'bar' at Context.<anonymous> (webpack:///test/unit/specs/Counter.spec.js:81:30 <- index.js:12255:31)
it('setData()方法', () => { const wrapper = mount(Counter) wrapper.setData({foo: 'bar'}) expect(wrapper.vm.foo).to.equal('bar') })
setData()方法 Counter.vue AssertionError: expected undefined to equal 'bar' at Context.<anonymous> (webpack:///test/unit/specs/Counter.spec.js:81:30 <- index.js:12255:31)
The text was updated successfully, but these errors were encountered:
Hey, this is the repo for avoriaz.
Try updating to @vue/test-utils beta.16:
npm i -D @vue/test-utils
Sorry, something went wrong.
No branches or pull requests
First use, encountered setData problem.Ask everyone for help.
my code:
it('setData()方法', () => { const wrapper = mount(Counter) wrapper.setData({foo: 'bar'}) expect(wrapper.vm.foo).to.equal('bar') })
terminal:
setData()方法 Counter.vue AssertionError: expected undefined to equal 'bar' at Context.<anonymous> (webpack:///test/unit/specs/Counter.spec.js:81:30 <- index.js:12255:31)
The text was updated successfully, but these errors were encountered: