From aef78b1ef1c05dcfb93373f12c56f72c7216d5f9 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Sat, 20 Feb 2010 14:46:26 -0500 Subject: [PATCH] MORE MARKDOWN LIES!!! --- README.markdown | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.markdown b/README.markdown index 812f979..7086021 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