hasAttribute docs seem to be outdated
Closed this issue · 1 comments
CalamarBicefalo commented
There seems to be a little discrepancy between the docs and the actual code. The docs suggests that hasAttribute should be happy with the name of the attribute, but the code forces you to actually define a value too.
It would be great to make sure both things remain aligned.
In the docs
expect(wrapper.hasAttribute('id')).to.equal(true);
In the code (latest version in GH)
hasAttribute(attribute: string, value: string) {
[...]
if (typeof value !== 'string') {
error('wrapper.hasAttribute() must be passed value as a string');
}
[...]
}
CalamarBicefalo commented
My bad, we had an old version of avoriaz.