Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0fc5851

Browse files
test(matchers): fix "not" string for toHaveClass matcher
1 parent e0e1b52 commit 0fc5851

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)