MORE MARKDOWN LIES!!!

This commit is contained in:
Christian Williams 2010-02-20 14:46:26 -05:00
parent f1f5d8de7d
commit aef78b1ef1
1 changed files with 7 additions and 7 deletions

View File

@ -120,17 +120,17 @@ It's extremely easy to create new matchers for your app. A matcher function rece
Here's the definition of `toBeLessThan()`:
toBeLessThan: function(expected) {
return this.actual < expected;
};
toBeLessThan: function(expected) {
return this.actual < expected;
};
To add the matcher to your suite, call `this.addMatchers()` from within a `before` or `it` block. Call it with an object mapping matcher name to function:
beforeEach(function() {
this.addMatchers({
toBeVisible: function() { return this.actual.isVisible(); }
beforeEach(function() {
this.addMatchers({
toBeVisible: function() { return this.actual.isVisible(); }
});
});
});
### Asynchronous Specs