In my unit test, I get an Object
and I can list the keys.
However, I can't get the value for a specific key:
wrapper = mount(Toolbar, { router, i18n });
const currentFlag= wrapper.find("#current-flag")
const currentFlagObject = currentFlag.attributes("src")
console.log(Object.keys(currentFlagObject))
console.log(currentFlagObject['src'])
console:
console.log tests/unit/Toolbar.spec.js:27
[ 'id', 'src', 'width' ]
console.log tests/unit/Toolbar.spec.js:28
[object Object]
Why can't i get the key value?