Skip to content

Instantly share code, notes, and snippets.

@bavey
Created March 25, 2014 19:21
Show Gist options
  • Save bavey/9769186 to your computer and use it in GitHub Desktop.
Save bavey/9769186 to your computer and use it in GitHub Desktop.
Jasmine Notes
# [http://jasmine.github.io/](Jasmine)
## Suites describe your tests
- Global Jasmine function `describe` accepts 2 parameters: `string`, `function`. String is name or title for a spec suite, usually what is being tested. Function is block of code that implements the suite.
## Specs
- Specs are defined by calling the global Jasmine function `it`, which accepts a `string` and `function`. String is a title for this spec and the function is the spec or test. A spec contains one more more expectations that test the state of the code under test.
## Expectations
-
## Matchers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment