We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66007a4 commit 4be7612Copy full SHA for 4be7612
test/matchers.js
@@ -40,11 +40,13 @@ beforeEach(function() {
40
toBeDirty: cssMatcher('ng-dirty', 'ng-pristine'),
41
toBePristine: cssMatcher('ng-pristine', 'ng-dirty'),
42
toBeShown: function() {
43
- this.message = valueFn("Expected element to not have 'ng-hide' class");
+ this.message = valueFn(
44
+ "Expected element " + (this.isNot ? "": "not ") + "to have 'ng-hide' class");
45
return !isNgElementHidden(this.actual);
46
},
47
toBeHidden: function() {
- this.message = valueFn("Expected element to have 'ng-hide' class");
48
49
+ "Expected element " + (this.isNot ? "not ": "") + "to have 'ng-hide' class");
50
return isNgElementHidden(this.actual);
51
52
0 commit comments