Created
March 25, 2014 19:21
-
-
Save bavey/9769186 to your computer and use it in GitHub Desktop.
Jasmine Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [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