Is there a way to determine if an element is either an "a" tag or a "div" tag? I've tried the following code, but it's not working as expected:
it('has no link if required', () => {
const wrapper = shallow(<AssetOverlay asset={ assetsData[0] } shouldBeLinked />);
expect(wrapper.find('.overlay-asset-link')).to.be.a('a');
const wrapper1 = shallow(<AssetOverlay asset={ assetsData[0] } shouldBeLinked="false" />);
//expect(wrapper1.find('.overlay-asset-link')).to.be.a('div');
});