Permalink
Browse files

oops: changed variable class->klass

  • Loading branch information...
1 parent b233d98 commit b3107a6246a5522ac0533f62da6eec9e3cc0ced4 @drnic committed Apr 29, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/assertions.js
View
@@ -143,11 +143,11 @@ JsUnitTest.Unit.Assertions = {
this.assertBlock(message, function() { return !(new RegExp(expected).exec(actual)) });
},
- assertHasClass: function(element, class, message) {
+ assertHasClass: function(element, klass, message) {
element = JsUnitTest.$(element);
- message = this.buildMessage(message || 'assertHasClass', '? doesn\'t have class <?>.', element, class);
+ message = this.buildMessage(message || 'assertHasClass', '? doesn\'t have class <?>.', element, klass);
this.assertBlock(message, function() {
- return !!element.className.match(new RegExp(class))
+ return !!element.className.match(new RegExp(klass))
});
},

0 comments on commit b3107a6

Please sign in to comment.