Matcher
- There are more matchers and I can make my own matchers
1. MoreMatchers
1) toEqual()
- It compare both objects If it is equal or not
2) toMatch()
- toMatch() matcher is for regular expression
3) toBeDefine()
- The toBeDefined() matcher compares againt 'undefined'
4) toContain()
- The toContain() matcher is for finding an item in an Array
'Tools > jasmine' 카테고리의 다른 글
[Jasmine] Spies (0) | 2016.07.29 |
---|---|
[Jasmine] Jasmine (0) | 2016.07.21 |