From 2881a645a5ee066ff3acf183366df882cfc97cb8 Mon Sep 17 00:00:00 2001 From: Jared Grippe Date: Fri, 6 Nov 2009 13:50:05 +0800 Subject: [PATCH] fixed two typos in README --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index a6cc6f4..5977992 100644 --- a/README.markdown +++ b/README.markdown @@ -124,10 +124,10 @@ Jasmine has several built-in matchers. Here are a few: A Matcher has a method name, takes an expected value as it's only parameter, has access to the actual value in this, and then makes a call to this.report with true/false with a failure message. Here's the definition of `toEqual()`: - Jasmine.Matchers.prototype.toEqual = function (expected) { + jasmine.Matchers.prototype.toEqual = function (expected) { return this.report((this.actual === expected), 'Expected ' + expected + ' but got ' + this.actual + '.'); - }); + }; Feel free to define your own matcher as needed in your code. If you'd like to add Matchers to Jasmine, please write tests.