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
Hello - how should I stub the value of a computed property in a unit test?
I've got a computed method on my component:
visibleRows () { return this.sortedRows.slice(this.firstVisibleRowIndex, this.lastVisibleRowIndex); },
that I've tried testing with the following:
wrapper.setData({ sortedRows: dummyData.data }); assert.equal(wrapper.vm.visibleRows, dummyData.data.slice(0, 4));
However, sortedRows logs as empty within the visibleRows method when the unit test runs. Any help much appreciated
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello - how should I stub the value of a computed property in a unit test?
I've got a computed method on my component:
that I've tried testing with the following:
However, sortedRows logs as empty within the visibleRows method when the unit test runs.
Any help much appreciated
The text was updated successfully, but these errors were encountered: