diff --git a/README.markdown b/README.markdown index 812f9791..70860217 100644 --- a/README.markdown +++ b/README.markdown @@ -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