GitHub's markdown previewer LIES!

This commit is contained in:
Christian Williams 2010-02-20 14:45:40 -05:00
parent 535d9abce0
commit f1f5d8de7d
1 changed files with 6 additions and 0 deletions

View File

@ -99,11 +99,17 @@ Results of the expectations are logged for later for reporting.
Jasmine has several built-in matchers. Here are a few: 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).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).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).toBeDefined();` passes if `x` is not `undefined`
>
>`expect(x).toBeNull();` passes if `x` is not `null` >`expect(x).toBeNull();` passes if `x` is not `null`
>
>`expect(x).toBeTruthy();` passes if `x` evaluates to true >`expect(x).toBeTruthy();` passes if `x` evaluates to true
>
>`expect(x).toBeFalsy();` passes if `x` evaluates to false >`expect(x).toBeFalsy();` passes if `x` evaluates to false
>
>`expect(x).toContain(y);` passes if array or string `x` contains `y` >`expect(x).toContain(y);` passes if array or string `x` contains `y`
#### Writing New Matchers #### Writing New Matchers