From f1f5d8de7de18ef46f3b6d5065ea7919b3be3a99 Mon Sep 17 00:00:00 2001 From: Christian Williams Date: Sat, 20 Feb 2010 14:45:40 -0500 Subject: [PATCH] GitHub's markdown previewer LIES! --- README.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.markdown b/README.markdown index 832647e..812f979 100644 --- a/README.markdown +++ b/README.markdown @@ -99,11 +99,17 @@ Results of the expectations are logged for later for reporting. Jasmine has several built-in matchers. Here are a few: >`expect(x).toEqual(y);` compares objects or primitives `x` and `y` and passes if they are equivalent +> >`expect(x).toMatch(pattern);` compares `x` to string or regular expression `pattern` and passes if they match +> >`expect(x).toBeDefined();` passes if `x` is not `undefined` +> >`expect(x).toBeNull();` passes if `x` is not `null` +> >`expect(x).toBeTruthy();` passes if `x` evaluates to true +> >`expect(x).toBeFalsy();` passes if `x` evaluates to false +> >`expect(x).toContain(y);` passes if array or string `x` contains `y` #### Writing New Matchers