Skip to content

Commit 60ad9bf

Browse files
petebacondarwinnetman92
authored andcommitted
test(matchers): fix "not" string for toHaveClass matcher
1 parent 92fce40 commit 60ad9bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/helpers/matchers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ beforeEach(function() {
165165

166166
toHaveClass: function(clazz) {
167167
this.message = function() {
168-
return "Expected '" + angular.mock.dump(this.actual) + "' to have class '" + clazz + "'.";
168+
return "Expected '" + angular.mock.dump(this.actual) + "'" + (this.isNot ? " not " : "") + " to have class '" + clazz + "'.";
169169
};
170170
var classes = clazz.trim().split(/\s+/);
171171
for (var i = 0; i < classes.length; ++i) {

0 commit comments

Comments
 (0)