In my directive, I use element.remove() under specific conditions to remove an element from the DOM.
element.remove()
it('should remove the <img> tag', function() { //expect(element.find('img')) ?? });
How can I unit test this?
Aucun commentaire:
Enregistrer un commentaire