diff options
Diffstat (limited to 'test/scenario/matchersSpec.js')
| -rw-r--r-- | test/scenario/matchersSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/scenario/matchersSpec.js b/test/scenario/matchersSpec.js index 7ab41cf2..7a5217d7 100644 --- a/test/scenario/matchersSpec.js +++ b/test/scenario/matchersSpec.js @@ -42,4 +42,10 @@ describe('angular.scenario.matchers', function () { expectMatcher(3, function() { matchers.toBeLessThan(10); }); expectMatcher(3, function() { matchers.toBeGreaterThan(-5); }); }); + + it('should have toHaveClass matcher', function(){ + var e = angular.element('<div class="abc">'); + expect(e).not.toHaveClass('none'); + expect(e).toHaveClass('abc'); + }); }); |
