dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

Assert attribute does not contain class in DalekJS #79

Open PapaMufflon opened 10 years ago

PapaMufflon commented 10 years ago

In DalekJS you can assert that an element has a class with

test.assert.attr('#logOutButton', 'class').to.contain('ng-hide')

Unfortunately it is not possible to somehow detect if an element does not have a class. I want to write

test.assert.attr('#logOutButton', 'class').to.not.contain('ng-hide')

asciidisco commented 10 years ago

Thanks for the hint. Sometimes you do not think about such "easy things" when you´re never needed them.