MORE MARKDOWN LIES!!!
This commit is contained in:
parent
f1f5d8de7d
commit
aef78b1ef1
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue