lundi 6 juillet 2015

Unit test the non-existence of a dom element

In my directive, I use element.remove() under specific conditions to remove an element from the DOM.

it('should remove the <img> tag', function() {

   //expect(element.find('img')) ??
});

How can I unit test this?

Aucun commentaire:

Enregistrer un commentaire