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()`:
|
Here's the definition of `toBeLessThan()`:
|
||||||
|
|
||||||
toBeLessThan: function(expected) {
|
toBeLessThan: function(expected) {
|
||||||
return this.actual < 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:
|
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() {
|
beforeEach(function() {
|
||||||
this.addMatchers({
|
this.addMatchers({
|
||||||
toBeVisible: function() { return this.actual.isVisible(); }
|
toBeVisible: function() { return this.actual.isVisible(); }
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
### Asynchronous Specs
|
### Asynchronous Specs
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue