Skip to content

Commit

Permalink
feat(regexps): add any.regExp()
Browse files Browse the repository at this point in the history
closes #65
  • Loading branch information
jacobwardio authored and JamieMason committed Jan 14, 2017
1 parent c983e3c commit a5079f8
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 51 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ A huge library of test assertion matchers for a range of common use-cases, to im
* [Numbers](#numbers)
* [Strings](#strings)
* [Objects](#objects)
* [Regular Expressions](#regular-expressions)
* [Members, Properties, Methods](#members-properties-methods)
* [Asymmetric Matchers](#asymmetric-matchers)
* [Jasmine's Default Asymmetric Matchers](#jasmines-default-asymmetric-matchers)
Expand Down Expand Up @@ -168,6 +169,13 @@ Matcher | Example
[toBeNonEmptyObject](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/toBeNonEmptyObject.spec.js) | `expect(object).toBeNonEmptyObject();`
[toBeObject](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/toBeObject.spec.js) | `expect(object).toBeObject();`

### Regular Expressions

Matcher | Example
:-------|:-------
[toBeRegExp](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/toBeRegExp.spec.js) | `expect(regexp).toBeRegExp();`


### Members, Properties, Methods

Matcher | Example
Expand Down Expand Up @@ -274,6 +282,12 @@ Matcher | Example
[any.emptyObject](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/emptyObject.spec.js) | `expect(spy).toHaveBeenCalledWith(any.emptyObject());`
[any.nonEmptyObject](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/nonEmptyObject.spec.js) | `expect(spy).toHaveBeenCalledWith(any.nonEmptyObject());`

### Regular Expressions

Matcher | Example
:-------|:-------
[any.regExp](https://github.com/JamieMason/Jasmine-Matchers/blob/master/test/regExp.spec.js) | `expect(spy).toHaveBeenCalledWith(any.regExp());`

## Integration

### Browser
Expand Down
Loading

0 comments on commit a5079f8

Please sign in to comment.