I am writing specs for my vue component and have to pass a value to a data object defined in the component
I am passing it like this,
wrapper.vm.organizations = [{"id":2,"company_name":"google","user_count":0}]
But in my component it is getting undefined and on console.log this is what i get,
[
{
id: [Getter/Setter],
company_name: [Getter/Setter],
user_count: [Getter/Setter]
}
]
How can i pass values properly?