diff --git a/CHANGELOG.md b/CHANGELOG.md
index f9d234f..9130814 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,184 +1,171 @@
-## [3.8.4](https://github.com/JamieMason/Jasmine-Matchers/compare/3.8.3...3.8.4) (2018-08-26)
+## [3.8.4](https://github.com/JamieMason/Jasmine-Matchers/compare/3.8.3...3.8.4) (2018-08-26)
### Bug Fixes
-* **npm:** update dependencies ([7cc7ff1](https://github.com/JamieMason/Jasmine-Matchers/commit/7cc7ff1))
-
-
+- **npm:** update dependencies
+ ([7cc7ff1](https://github.com/JamieMason/Jasmine-Matchers/commit/7cc7ff1))
-## [3.8.3](https://github.com/JamieMason/Jasmine-Matchers/compare/3.8.1...3.8.3) (2018-01-29)
+## [3.8.3](https://github.com/JamieMason/Jasmine-Matchers/compare/3.8.1...3.8.3) (2018-01-29)
### Bug Fixes
-* **types:** update typescript definitions ([23ee7d8](https://github.com/JamieMason/Jasmine-Matchers/commit/23ee7d8))
-* **typescript:** fix jest typings mismatch ([3cb9571](https://github.com/JamieMason/Jasmine-Matchers/commit/3cb9571)), closes [#62](https://github.com/JamieMason/Jasmine-Matchers/issues/62)
-
-
+- **types:** update typescript definitions
+ ([23ee7d8](https://github.com/JamieMason/Jasmine-Matchers/commit/23ee7d8))
+- **typescript:** fix jest typings mismatch
+ ([3cb9571](https://github.com/JamieMason/Jasmine-Matchers/commit/3cb9571)),
+ closes [#62](https://github.com/JamieMason/Jasmine-Matchers/issues/62)
-## [3.8.1](https://github.com/JamieMason/Jasmine-Matchers/compare/3.7.1...3.8.1) (2017-10-30)
+## [3.8.1](https://github.com/JamieMason/Jasmine-Matchers/compare/3.7.1...3.8.1) (2017-10-30)
### Features
-* **core:** add typescript declarations for typing ([105bcc3](https://github.com/JamieMason/Jasmine-Matchers/commit/105bcc3))
-
-
+- **core:** add typescript declarations for typing
+ ([105bcc3](https://github.com/JamieMason/Jasmine-Matchers/commit/105bcc3))
-## [3.7.1](https://github.com/JamieMason/Jasmine-Matchers/compare/3.7.0...3.7.1) (2017-07-27)
+## [3.7.1](https://github.com/JamieMason/Jasmine-Matchers/compare/3.7.0...3.7.1) (2017-07-27)
### Bug Fixes
-* **npm:** update dependencies ([1b02c06](https://github.com/JamieMason/Jasmine-Matchers/commit/1b02c06))
-
-
+- **npm:** update dependencies
+ ([1b02c06](https://github.com/JamieMason/Jasmine-Matchers/commit/1b02c06))
-# [3.7.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.6.0...3.7.0) (2017-03-10)
-
+# [3.7.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.6.0...3.7.0) (2017-03-10)
-# [3.6.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.5.0...3.6.0) (2017-01-31)
+# [3.6.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.5.0...3.6.0) (2017-01-31)
### Features
-* **objects:** add toHaveUndefined matcher ([443dc76](https://github.com/JamieMason/Jasmine-Matchers/commit/443dc76)), closes [#37](https://github.com/JamieMason/Jasmine-Matchers/issues/37)
-
-
+- **objects:** add toHaveUndefined matcher
+ ([443dc76](https://github.com/JamieMason/Jasmine-Matchers/commit/443dc76)),
+ closes [#37](https://github.com/JamieMason/Jasmine-Matchers/issues/37)
-# [3.5.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.2.0...3.5.0) (2017-01-18)
+# [3.5.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.2.0...3.5.0) (2017-01-18)
### Features
-* **dates:** add toBeValidDate matcher ([47691cf](https://github.com/JamieMason/Jasmine-Matchers/commit/47691cf)), closes [#49](https://github.com/JamieMason/Jasmine-Matchers/issues/49)
-* **jest:** add compatibility with jest ([0654bcc](https://github.com/JamieMason/Jasmine-Matchers/commit/0654bcc))
-* **numbers:** add toBeNear matcher ([ffac1f5](https://github.com/JamieMason/Jasmine-Matchers/commit/ffac1f5)), closes [#58](https://github.com/JamieMason/Jasmine-Matchers/issues/58)
-
-
+- **dates:** add toBeValidDate matcher
+ ([47691cf](https://github.com/JamieMason/Jasmine-Matchers/commit/47691cf)),
+ closes [#49](https://github.com/JamieMason/Jasmine-Matchers/issues/49)
+- **jest:** add compatibility with jest
+ ([0654bcc](https://github.com/JamieMason/Jasmine-Matchers/commit/0654bcc))
+- **numbers:** add toBeNear matcher
+ ([ffac1f5](https://github.com/JamieMason/Jasmine-Matchers/commit/ffac1f5)),
+ closes [#58](https://github.com/JamieMason/Jasmine-Matchers/issues/58)
-# [3.2.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.0.1...3.2.0) (2017-01-14)
+# [3.2.0](https://github.com/JamieMason/Jasmine-Matchers/compare/3.0.1...3.2.0) (2017-01-14)
### Features
-* **regexps:** add any.regExp() ([a5079f8](https://github.com/JamieMason/Jasmine-Matchers/commit/a5079f8)), closes [#65](https://github.com/JamieMason/Jasmine-Matchers/issues/65)
-* **regexps:** add toBeRegExp matcher ([c983e3c](https://github.com/JamieMason/Jasmine-Matchers/commit/c983e3c)), closes [#25](https://github.com/JamieMason/Jasmine-Matchers/issues/25) [#64](https://github.com/JamieMason/Jasmine-Matchers/issues/64)
-
-
+- **regexps:** add any.regExp()
+ ([a5079f8](https://github.com/JamieMason/Jasmine-Matchers/commit/a5079f8)),
+ closes [#65](https://github.com/JamieMason/Jasmine-Matchers/issues/65)
+- **regexps:** add toBeRegExp matcher
+ ([c983e3c](https://github.com/JamieMason/Jasmine-Matchers/commit/c983e3c)),
+ closes [#25](https://github.com/JamieMason/Jasmine-Matchers/issues/25)
+ [#64](https://github.com/JamieMason/Jasmine-Matchers/issues/64)
-## [3.0.1](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.2...3.0.1) (2016-08-23)
-
-* feat(objects) deprecate .toImplement ([0f44ce5](https://github.com/JamieMason/Jasmine-Matchers/commit/0f44ce5))
+## [3.0.1](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.2...3.0.1) (2016-08-23)
+- feat(objects) deprecate .toImplement
+ ([0f44ce5](https://github.com/JamieMason/Jasmine-Matchers/commit/0f44ce5))
### Bug Fixes
-* **functions:** add android 4.0 support in toBeFunction ([1068001](https://github.com/JamieMason/Jasmine-Matchers/commit/1068001))
-
+- **functions:** add android 4.0 support in toBeFunction
+ ([1068001](https://github.com/JamieMason/Jasmine-Matchers/commit/1068001))
### Features
-* **asymmetric:** add asymmetric matchers ([7cc229b](https://github.com/JamieMason/Jasmine-Matchers/commit/7cc229b))
-* **numbers:** add toBeGreaterThanOrEqualTo ([ac5da2a](https://github.com/JamieMason/Jasmine-Matchers/commit/ac5da2a))
-* **numbers:** add toBeLessThanOrEqualTo ([c5bc875](https://github.com/JamieMason/Jasmine-Matchers/commit/c5bc875))
-
+- **asymmetric:** add asymmetric matchers
+ ([7cc229b](https://github.com/JamieMason/Jasmine-Matchers/commit/7cc229b))
+- **numbers:** add toBeGreaterThanOrEqualTo
+ ([ac5da2a](https://github.com/JamieMason/Jasmine-Matchers/commit/ac5da2a))
+- **numbers:** add toBeLessThanOrEqualTo
+ ([c5bc875](https://github.com/JamieMason/Jasmine-Matchers/commit/c5bc875))
### BREAKING CHANGES
-* expect(object).toImplement has been deprecated, it is recommended to use jasmine.objectContaining() instead.
-
-
+- expect(object).toImplement has been deprecated, it is recommended to use
+ jasmine.objectContaining() instead.
-## [2.0.2](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.1...2.0.2) (2016-02-16)
-
+## [2.0.2](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.1...2.0.2) (2016-02-16)
-## [2.0.1](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0...2.0.1) (2016-02-04)
-
+## [2.0.1](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0...2.0.1) (2016-02-04)
-# [2.0.0](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta5...2.0.0) (2016-02-03)
-
+# [2.0.0](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta5...2.0.0) (2016-02-03)
-# [2.0.0-beta5](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta4...2.0.0-beta5) (2016-02-02)
-
+# [2.0.0-beta5](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta4...2.0.0-beta5) (2016-02-02)
-# [2.0.0-beta4](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta3...2.0.0-beta4) (2016-02-01)
-
+# [2.0.0-beta4](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta3...2.0.0-beta4) (2016-02-01)
-# [2.0.0-beta3](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta2...2.0.0-beta3) (2016-01-31)
-
+# [2.0.0-beta3](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta2...2.0.0-beta3) (2016-01-31)
-# [2.0.0-beta2](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta1...2.0.0-beta2) (2015-09-13)
-
+# [2.0.0-beta2](https://github.com/JamieMason/Jasmine-Matchers/compare/2.0.0-beta1...2.0.0-beta2) (2015-09-13)
-# [2.0.0-beta1](https://github.com/JamieMason/Jasmine-Matchers/compare/1.22.3...2.0.0-beta1) (2015-02-23)
-
+# [2.0.0-beta1](https://github.com/JamieMason/Jasmine-Matchers/compare/1.22.3...2.0.0-beta1) (2015-02-23)
-## [1.22.3](https://github.com/JamieMason/Jasmine-Matchers/compare/1.22.2...1.22.3) (2014-12-31)
-
+## [1.22.3](https://github.com/JamieMason/Jasmine-Matchers/compare/1.22.2...1.22.3) (2014-12-31)
-## [1.22.2](https://github.com/JamieMason/Jasmine-Matchers/compare/1.22.0...1.22.2) (2014-09-04)
-
+## [1.22.2](https://github.com/JamieMason/Jasmine-Matchers/compare/1.22.0...1.22.2) (2014-09-04)
-# [1.22.0](https://github.com/JamieMason/Jasmine-Matchers/compare/1.20.0...1.22.0) (2014-07-25)
-
+# [1.22.0](https://github.com/JamieMason/Jasmine-Matchers/compare/1.20.0...1.22.0) (2014-07-25)
-# [1.20.0](https://github.com/JamieMason/Jasmine-Matchers/compare/1.17.0...1.20.0) (2013-07-08)
-
+# [1.20.0](https://github.com/JamieMason/Jasmine-Matchers/compare/1.17.0...1.20.0) (2013-07-08)
-# [1.17.0](https://github.com/JamieMason/Jasmine-Matchers/compare/1.16.4...1.17.0) (2013-07-04)
-
+# [1.17.0](https://github.com/JamieMason/Jasmine-Matchers/compare/1.16.4...1.17.0) (2013-07-04)
-## [1.16.4](https://github.com/JamieMason/Jasmine-Matchers/compare/1.16.3...1.16.4) (2013-07-03)
-
+## [1.16.4](https://github.com/JamieMason/Jasmine-Matchers/compare/1.16.3...1.16.4) (2013-07-03)
-## [1.16.3](https://github.com/JamieMason/Jasmine-Matchers/compare/1.16.1...1.16.3) (2013-07-03)
-
+## [1.16.3](https://github.com/JamieMason/Jasmine-Matchers/compare/1.16.1...1.16.3) (2013-07-03)
-## 1.16.1 (2013-07-03)
-
-
+## 1.16.1 (2013-07-03)
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
index d95cb07..69be6b2 100644
--- a/CODE_OF_CONDUCT.md
+++ b/CODE_OF_CONDUCT.md
@@ -2,45 +2,73 @@
## Our Pledge
-In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
+In the interest of fostering an open and welcoming environment, we as
+contributors and maintainers pledge to making participation in our project and
+our community a harassment-free experience for everyone, regardless of age, body
+size, disability, ethnicity, gender identity and expression, level of
+experience, nationality, personal appearance, race, religion, or sexual identity
+and orientation.
## Our Standards
-Examples of behavior that contributes to creating a positive environment include:
+Examples of behavior that contributes to creating a positive environment
+include:
-* Using welcoming and inclusive language
-* Being respectful of differing viewpoints and experiences
-* Gracefully accepting constructive criticism
-* Focusing on what is best for the community
-* Showing empathy towards other community members
+- Using welcoming and inclusive language
+- Being respectful of differing viewpoints and experiences
+- Gracefully accepting constructive criticism
+- Focusing on what is best for the community
+- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
-* The use of sexualized language or imagery and unwelcome sexual attention or advances
-* Trolling, insulting/derogatory comments, and personal or political attacks
-* Public or private harassment
-* Publishing others' private information, such as a physical or electronic address, without explicit permission
-* Other conduct which could reasonably be considered inappropriate in a professional setting
+- The use of sexualized language or imagery and unwelcome sexual attention or
+ advances
+- Trolling, insulting/derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or electronic
+ address, without explicit permission
+- Other conduct which could reasonably be considered inappropriate in a
+ professional setting
## Our Responsibilities
-Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
+Project maintainers are responsible for clarifying the standards of acceptable
+behavior and are expected to take appropriate and fair corrective action in
+response to any instances of unacceptable behavior.
-Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
+Project maintainers have the right and responsibility to remove, edit, or reject
+comments, commits, code, wiki edits, issues, and other contributions that are
+not aligned to this Code of Conduct, or to ban temporarily or permanently any
+contributor for other behaviors that they deem inappropriate, threatening,
+offensive, or harmful.
## Scope
-This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
+This Code of Conduct applies both within project spaces and in public spaces
+when an individual is representing the project or its community. Examples of
+representing a project or community include using an official project e-mail
+address, posting via an official social media account, or acting as an appointed
+representative at an online or offline event. Representation of a project may be
+further defined and clarified by project maintainers.
## Enforcement
-Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at jamie@foldleft.io. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported by contacting the project team at jamie@foldleft.io. The project team
+will review and investigate all complaints, and will respond in a way that it
+deems appropriate to the circumstances. The project team is obligated to
+maintain confidentiality with regard to the reporter of an incident. Further
+details of specific enforcement policies may be posted separately.
-Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
+Project maintainers who do not follow or enforce the Code of Conduct in good
+faith may face temporary or permanent repercussions as determined by other
+members of the project's leadership.
## Attribution
-This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 5cdddaa..aed6efd 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -2,45 +2,62 @@
## Installation
-1. Download `node` at [nodejs.org](http://nodejs.org) and install it, if you haven't already.
+1. Download `node` at [nodejs.org](http://nodejs.org) and install it, if you
+ haven't already.
1. Clone the repo.
- ```sh
- git clone https://github.com/JamieMason/Jasmine-Matchers.git
- cd Jasmine-Matchers
- ```
+```sh
+git clone https://github.com/JamieMason/Jasmine-Matchers.git
+cd Jasmine-Matchers
+```
+
1. Install dependencies.
- ```sh
- npm install
- ```
+```sh
+npm install
+```
## Adding Matchers
-Please first [open an issue](https://github.com/JamieMason/Jasmine-Matchers/issues/new) so the idea can be discussed, there are other matcher libraries so this one may not be the best fit. Appropriate matchers are those that are likely to be useful to the majority of Developers, ie. not those which apply only to users of a particular library or framework.
+Please first
+[open an issue](https://github.com/JamieMason/Jasmine-Matchers/issues/new) so
+the idea can be discussed, there are other matcher libraries so this one may not
+be the best fit. Appropriate matchers are those that are likely to be useful to
+the majority of Developers, ie. not those which apply only to users of a
+particular library or framework.
Once agreed, the steps at the time of writing are as follows;
-+ Run `npm run watch` to build and test on each file change
-+ Create `test/.spec.js`
-+ Create `src/.js`
-+ Add `: require('./'),` to the `matcher` object in `src/api.js`
-+ Add the new matcher to `README.md`
-+ Run `npm run build` to generate `dist/*.js`
+- Run `npm run watch` to build and test on each file change
+- Create `test/.spec.js`
+- Create `src/.js`
+- Add `: require('./'),` to the `matcher` object in
+ `src/api.js`
+- Add the new matcher to `README.md`
+- Run `npm run build` to generate `dist/*.js`
## Running Tests
-Running `npm run test:local` will run the test suite in Chrome and `npm run test:jest` will do the same in Node.js, this is enough for initial development locally.
+Running `npm run test:local` will run the test suite in Chrome and
+`npm run test:jest` will do the same in Node.js, this is enough for initial
+development locally.
-Before any changes are released, the test suite is runs in hundreds of browser/version combinations using [Browserstack](https://www.browserstack.com/).
+Before any changes are released, the test suite is runs in hundreds of
+browser/version combinations using
+[Browserstack](https://www.browserstack.com/).
## Writing Tests
-Please take some time to [review the existing tests](https://github.com/JamieMason/Jasmine-Matchers/tree/master/test) to get a feel for what would be considered consistent with the rest of the project.
+Please take some time to
+[review the existing tests](https://github.com/JamieMason/Jasmine-Matchers/tree/master/test)
+to get a feel for what would be considered consistent with the rest of the
+project.
## Coding Style
-This project uses [xo: Happiness JavaScript linter](https://github.com/sindresorhus/xo) and can be linted and formatted by running;
+This project uses
+[xo: Happiness JavaScript linter](https://github.com/sindresorhus/xo) and can be
+linted and formatted by running;
```sh
npm run lint
@@ -48,9 +65,13 @@ npm run lint
## Commit Message Format
-There are very precise rules over how our git commit messages can be formatted. This leads to more readable messages that are easy to follow when looking through the project history, but also allows us to generate the CHANGELOG.md.
+There are very precise rules over how our git commit messages can be formatted.
+This leads to more readable messages that are easy to follow when looking
+through the project history, but also allows us to generate the CHANGELOG.md.
-Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**:
+Each commit message consists of a **header**, a **body** and a **footer**. The
+header has a special format that includes a **type**, a **scope** and a
+**subject**:
```
():
@@ -62,7 +83,8 @@ Each commit message consists of a **header**, a **body** and a **footer**. The h
The **header** is mandatory and the **scope** of the header is optional.
-Any line of the commit message should not be longer 100 characters, this allows the message to be easier to read on GitHub as well as in various git tools.
+Any line of the commit message should not be longer 100 characters, this allows
+the message to be easier to read on GitHub as well as in various git tools.
### Type
@@ -83,24 +105,30 @@ chore: Changes to the build process or auxiliary tools
### Scope
-The scope could be anything specifying which part or aspect of the project changed. For example `logging`, `npm`, `readme`, `release`, `shell`, `shrinkpack`, `shrinkwrap`, `tests`, `workflow`, etc...
+The scope could be anything specifying which part or aspect of the project
+changed. For example `logging`, `npm`, `readme`, `release`, `shell`,
+`shrinkpack`, `shrinkwrap`, `tests`, `workflow`, etc...
### Subject
The subject contains succinct description of the change:
-* use the imperative, present tense: "change" not "changed" nor "changes"
-* don't capitalize first letter
-* no dot (.) at the end
+- use the imperative, present tense: "change" not "changed" nor "changes"
+- don't capitalize first letter
+- no dot (.) at the end
### Body
-Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
+Just as in the **subject**, use the imperative, present tense: "change" not
+"changed" nor "changes".
-The body should include the motivation for the change and contrast this with previous behavior.
+The body should include the motivation for the change and contrast this with
+previous behavior.
### Footer
-The footer should contain any information about **Breaking Changes** and is also the place to reference GitHub issues that this commit **Closes**.
+The footer should contain any information about **Breaking Changes** and is also
+the place to reference GitHub issues that this commit **Closes**.
-**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
+**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space
+or two newlines. The rest of the commit message is then used for this.
diff --git a/DEPENDENCIES.md b/DEPENDENCIES.md
index 4febc19..802a7ae 100644
--- a/DEPENDENCIES.md
+++ b/DEPENDENCIES.md
@@ -4,12 +4,10 @@ Write Beautiful Specs with Custom Matchers
## Installation
-This is a [Node.js](https://nodejs.org/) module available through the
-[npm registry](https://www.npmjs.com/). It can be installed using the
+This is a [Node.js](https://nodejs.org/) module available through the
+[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
-or
-[`yarn`](https://yarnpkg.com/en/)
-command line tools.
+or [`yarn`](https://yarnpkg.com/en/) command line tools.
```sh
npm install jasmine-expect --save
@@ -24,33 +22,48 @@ npm test
## Dependencies
-- [add-matchers](http://ghub.io/add-matchers): Write useful test matchers compatible with Jest and Jasmine.
+- [add-matchers](http://ghub.io/add-matchers): Write useful test matchers
+ compatible with Jest and Jasmine.
## Dev Dependencies
- [babel-core](http://ghub.io/babel-core): Babel compiler core.
-- [babel-preset-env](http://ghub.io/babel-preset-env): A Babel preset for each environment.
+- [babel-preset-env](http://ghub.io/babel-preset-env): A Babel preset for each
+ environment.
- [babelify](http://ghub.io/babelify): Babel browserify transform
- [browserify](http://ghub.io/browserify): browser-side require() the node way
-- [codeclimate-test-reporter](http://ghub.io/codeclimate-test-reporter): Code Climate test reporter client for javascript projects
-- [cz-conventional-changelog](http://ghub.io/cz-conventional-changelog): Commitizen adapter following the conventional-changelog format.
+- [codeclimate-test-reporter](http://ghub.io/codeclimate-test-reporter): Code
+ Climate test reporter client for javascript projects
+- [cz-conventional-changelog](http://ghub.io/cz-conventional-changelog):
+ Commitizen adapter following the conventional-changelog format.
- [gulp](http://ghub.io/gulp): The streaming build system
-- [husky](http://ghub.io/husky): Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)
-- [jasmine-core](http://ghub.io/jasmine-core): Official packaging of Jasmine's core files for use by Node.js projects.
+- [husky](http://ghub.io/husky): Prevents bad commit or push (git hooks,
+ pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that
+ stuff...)
+- [jasmine-core](http://ghub.io/jasmine-core): Official packaging of
+ Jasmine's core files for use by Node.js projects.
- [jest](http://ghub.io/jest): Delightful JavaScript Testing.
- [karma](http://ghub.io/karma): Spectacular Test Runner for JavaScript.
-- [karma-browserstack-launcher](http://ghub.io/karma-browserstack-launcher): A Karma plugin. Launch any browser on BrowserStack!
-- [karma-chrome-launcher](http://ghub.io/karma-chrome-launcher): A Karma plugin. Launcher for Chrome and Chrome Canary.
+- [karma-browserstack-launcher](http://ghub.io/karma-browserstack-launcher): A
+ Karma plugin. Launch any browser on BrowserStack!
+- [karma-chrome-launcher](http://ghub.io/karma-chrome-launcher): A Karma plugin.
+ Launcher for Chrome and Chrome Canary.
- [karma-cli](http://ghub.io/karma-cli): The Karma command line interface.
-- [karma-coverage](http://ghub.io/karma-coverage): A Karma plugin. Generate code coverage.
-- [karma-firefox-launcher](http://ghub.io/karma-firefox-launcher): A Karma plugin. Launcher for Firefox.
-- [karma-jasmine](http://ghub.io/karma-jasmine): A Karma plugin - adapter for Jasmine testing framework.
-- [karma-nested-reporter](http://ghub.io/karma-nested-reporter): Easier to read test output with nested describe and it blocks.
+- [karma-coverage](http://ghub.io/karma-coverage): A Karma plugin. Generate code
+ coverage.
+- [karma-firefox-launcher](http://ghub.io/karma-firefox-launcher): A Karma
+ plugin. Launcher for Firefox.
+- [karma-jasmine](http://ghub.io/karma-jasmine): A Karma plugin - adapter for
+ Jasmine testing framework.
+- [karma-nested-reporter](http://ghub.io/karma-nested-reporter): Easier to read
+ test output with nested describe and it blocks.
- [saucelabs](http://ghub.io/saucelabs): A wrapper around Sauce Labs REST API
-- [validate-commit-msg](http://ghub.io/validate-commit-msg): Script to validate a commit message follows the conventional changelog standard
-- [vinyl-source-stream](http://ghub.io/vinyl-source-stream): Use conventional text streams at the start of your gulp or vinyl pipelines
+- [validate-commit-msg](http://ghub.io/validate-commit-msg): Script to validate
+ a commit message follows the conventional changelog standard
+- [vinyl-source-stream](http://ghub.io/vinyl-source-stream): Use conventional
+ text streams at the start of your gulp or vinyl pipelines
- [xo](http://ghub.io/xo): JavaScript happiness style linter ❤️
## License
-MIT
\ No newline at end of file
+MIT
diff --git a/README.md b/README.md
index 7e84100..9b41de1 100644
--- a/README.md
+++ b/README.md
@@ -12,14 +12,17 @@
[![Follow JamieMason on GitHub](https://img.shields.io/github/followers/JamieMason.svg?style=social&label=Follow)](https://github.com/JamieMason)
[![Follow fold_left on Twitter](https://img.shields.io/twitter/follow/fold_left.svg?style=social&label=Follow)](https://twitter.com/fold_left)
-[Overview](#overview) | [Installation](#installation) | [Matchers](#matchers) | [Asymmetric Matchers](#asymmetric-matchers) | [Integration](#integration) | [Browser Support](#browser-support)
+[Overview](#overview) | [Installation](#installation) | [Matchers](#matchers) |
+[Asymmetric Matchers](#asymmetric-matchers) | [Integration](#integration) |
+[Browser Support](#browser-support)
## Overview
##### What
A huge library of test matchers for a range of common use-cases, compatible with
-all versions of [Jasmine](http://jasmine.github.io/) and [Jest](http://facebook.github.io/jest/).
+all versions of [Jasmine](http://jasmine.github.io/) and
+[Jest](http://facebook.github.io/jest/).
##### Why
@@ -39,7 +42,6 @@ stating that you `expect(cycleWheels).toBeEvenNumber()`.
-
## Installation
##### npm
@@ -56,8 +58,8 @@ bower install jasmine-expect --save-dev
##### Manual
-Downloads are available on the [releases](https://github.com/JamieMason/Jasmine-Matchers/releases) page.
-
+Downloads are available on the
+[releases](https://github.com/JamieMason/Jasmine-Matchers/releases) page.
## API
@@ -86,7 +88,8 @@ expect(fn).toThrow(string);
expect(fn).toThrowError(string);
```
-and this [default set of asymmetric matchers](http://jasmine.github.io/2.4/introduction.html#section-Matching_Anything_with_%3Ccode%3Ejasmine.any%3C/code%3E);
+and this
+[default set of asymmetric matchers](http://jasmine.github.io/2.4/introduction.html#section-Matching_Anything_with_%3Ccode%3Ejasmine.any%3C/code%3E);
```js
jasmine.any(Constructor);
@@ -98,7 +101,8 @@ jasmine.stringMatching(pattern);
## Matchers
-[Jasmine-Matchers](https://github.com/JamieMason/Jasmine-Matchers) adds the following matchers:
+[Jasmine-Matchers](https://github.com/JamieMason/Jasmine-Matchers) adds the
+following matchers:
```js
expect(array).toBeArray();
@@ -215,12 +219,13 @@ any.wholeNumber();
any.withinRange(floor, ceiling);
```
-
## Integration
### Browser
-Embed [jasmine-matchers.js](https://github.com/JamieMason/Jasmine-Matchers/blob/master/dist/jasmine-matchers.js) after Jasmine but before your tests.
+Embed
+[jasmine-matchers.js](https://github.com/JamieMason/Jasmine-Matchers/blob/master/dist/jasmine-matchers.js)
+after Jasmine but before your tests.
### Jest
@@ -238,11 +243,15 @@ import JasmineExpect from 'jasmine-expect';
### Karma
-Integration is easy with the [karma-jasmine-matchers](https://github.com/JamieMason/karma-jasmine-matchers) plugin.
+Integration is easy with the
+[karma-jasmine-matchers](https://github.com/JamieMason/karma-jasmine-matchers)
+plugin.
### Node.js
-Use the [Jasmine CLI](https://www.npmjs.com/package/jasmine) and include the path to where Jasmine Matchers is installed in the `helpers` array of your `spec/support/jasmine.json`.
+Use the [Jasmine CLI](https://www.npmjs.com/package/jasmine) and include the
+path to where Jasmine Matchers is installed in the `helpers` array of your
+`spec/support/jasmine.json`.
```json
{
@@ -260,8 +269,8 @@ If you are using TypeScript, you might want to
`npm install @types/jasmine-expect --save-dev` in order to prevent your IDE from
complaining about the new Matchers.
-Also, if you run into TypeScript compilation errors when running your tests,
-add `"jasmine-expect"` to the `"types"` array in your tests' `tsconfig` file.
+Also, if you run into TypeScript compilation errors when running your tests, add
+`"jasmine-expect"` to the `"types"` array in your tests' `tsconfig` file.
As an example, for an Angular CLI based project, this would be your
`tsconfig.spec.json` file:
@@ -274,30 +283,27 @@ As an example, for an Angular CLI based project, this would be your
"baseUrl": "./",
"module": "commonjs",
"target": "es5",
- "types": [
- "jasmine",
- "node",
- "jasmine-expect"
- ]
+ "types": ["jasmine", "node", "jasmine-expect"]
},
- "files": [
- "test.ts"
- ],
- "include": [
- "**/*.spec.ts",
- "**/*.d.ts"
- ]
+ "files": ["test.ts"],
+ "include": ["**/*.spec.ts", "**/*.d.ts"]
}
```
### Sublime Text
-[Jasmine-Matchers-Snippets](https://github.com/JamieMason/Jasmine-Matchers-Snippets) or [Jasmine-Matchers-ES6-Snippets](https://github.com/JamieMason/Jasmine-Matchers-ES6-Snippets) can be installed with [Package Control](https://packagecontrol.io/packages/Jasmine%20Matchers%20Snippets) to ease development with Jasmine Matchers in Sublime Text.
+[Jasmine-Matchers-Snippets](https://github.com/JamieMason/Jasmine-Matchers-Snippets)
+or
+[Jasmine-Matchers-ES6-Snippets](https://github.com/JamieMason/Jasmine-Matchers-ES6-Snippets)
+can be installed with
+[Package Control](https://packagecontrol.io/packages/Jasmine%20Matchers%20Snippets)
+to ease development with Jasmine Matchers in Sublime Text.
### Tern
-There is a [Plugin](https://github.com/ik9999/tern-jasminematchers) for [Tern](https://github.com/ternjs/tern) to auto-complete matchers in your Text Editor.
-
+There is a [Plugin](https://github.com/ik9999/tern-jasminematchers) for
+[Tern](https://github.com/ternjs/tern) to auto-complete matchers in your Text
+Editor.
## Browser Support
@@ -305,15 +311,14 @@ Jasmine-Matchers is tested on
[Travis CI](https://travis-ci.org/JamieMason/Jasmine-Matchers) and
[BrowserStack](https://browserstack.com) against the following environments.
-Browser | Version Range
-:-------|-------------:
-Android | 4.0 - 5.1
-Chrome | 26 - 52
-Firefox | 4 - 48
-Internet Explorer | 9 - Edge
-iOS | 6.0 - 9.3*
-Opera | 11 - 12
-Safari | 6 - 9*
+| Browser | Version Range |
+| :---------------- | ------------: |
+| Android | 4.0 - 5.1 |
+| Chrome | 26 - 52 |
+| Firefox | 4 - 48 |
+| Internet Explorer | 9 - Edge |
+| iOS | 6.0 - 9.3\* |
+| Opera | 11 - 12 |
+| Safari | 6 - 9\* |
\* Safari 5.1 and iOS 5.1 are actually fully supported except for `toBeIso8601`.
-
diff --git a/examples/protractor/README.md b/examples/protractor/README.md
index e82e0f3..a9b1196 100644
--- a/examples/protractor/README.md
+++ b/examples/protractor/README.md
@@ -2,20 +2,26 @@
## System Dependencies
-Protractor requires you to have the [Java SDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) manually installed beforehand.
+Protractor requires you to have the
+[Java SDK](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
+manually installed beforehand.
## Running Tests
-1. Run `npm start` to start the Selenium Server which Protractor will send requests to.
-1. Leave the Server running then open another Terminal Session in another window.
+1. Run `npm start` to start the Selenium Server which Protractor will send
+ requests to.
+1. Leave the Server running then open another Terminal Session in another
+ window.
1. In the new Terminal window, run `npm test`.
1. Return to the Server Terminal and hit Ctrl+C to stop the Server.
## Configuration
-Jasmine Matchers is loaded by adding `node_modules/jasmine-expect/index.js` as the first item in the
-`specs` array in `./conf.js`.
+Jasmine Matchers is loaded by adding `node_modules/jasmine-expect/index.js` as
+the first item in the `specs` array in `./conf.js`.
## Further Reading
-For more information, please see the [Protractor Tutorial](http://www.protractortest.org/#/tutorial) and [Protractor Gitter Chat](https://gitter.im/angular/protractor).
+For more information, please see the
+[Protractor Tutorial](http://www.protractortest.org/#/tutorial) and
+[Protractor Gitter Chat](https://gitter.im/angular/protractor).
diff --git a/scripts/readme/browser-support.md b/scripts/readme/browser-support.md
index f10cf4d..bdd59da 100644
--- a/scripts/readme/browser-support.md
+++ b/scripts/readme/browser-support.md
@@ -4,14 +4,14 @@ Jasmine-Matchers is tested on
[Travis CI](https://travis-ci.org/JamieMason/Jasmine-Matchers) and
[BrowserStack](https://browserstack.com) against the following environments.
-Browser | Version Range
-:-------|-------------:
-Android | 4.0 - 5.1
-Chrome | 26 - 52
-Firefox | 4 - 48
-Internet Explorer | 9 - Edge
-iOS | 6.0 - 9.3*
-Opera | 11 - 12
-Safari | 6 - 9*
+| Browser | Version Range |
+| :---------------- | ------------: |
+| Android | 4.0 - 5.1 |
+| Chrome | 26 - 52 |
+| Firefox | 4 - 48 |
+| Internet Explorer | 9 - Edge |
+| iOS | 6.0 - 9.3\* |
+| Opera | 11 - 12 |
+| Safari | 6 - 9\* |
\* Safari 5.1 and iOS 5.1 are actually fully supported except for `toBeIso8601`.
diff --git a/scripts/readme/index.md b/scripts/readme/index.md
index 3e1784e..30aa351 100644
--- a/scripts/readme/index.md
+++ b/scripts/readme/index.md
@@ -8,7 +8,9 @@
[![Code Climate](https://img.shields.io/codeclimate/github/JamieMason/Jasmine-Matchers.svg?style=flat-square)](https://codeclimate.com/github/JamieMason/Jasmine-Matchers)
[![Analytics](https://ga-beacon.appspot.com/UA-45466560-5/jasmine-matchers?flat&useReferer)](https://github.com/igrigorik/ga-beacon)
-[Overview](#overview) | [Installation](#installation) | [Matchers](#matchers) | [Asymmetric Matchers](#asymmetric-matchers) | [Integration](#integration) | [Browser Support](#browser-support)
+[Overview](#overview) | [Installation](#installation) | [Matchers](#matchers) |
+[Asymmetric Matchers](#asymmetric-matchers) | [Integration](#integration) |
+[Browser Support](#browser-support)
{{OVERVIEW}}
diff --git a/scripts/readme/installation.md b/scripts/readme/installation.md
index d7e1cca..0b57629 100644
--- a/scripts/readme/installation.md
+++ b/scripts/readme/installation.md
@@ -14,4 +14,5 @@ bower install jasmine-expect --save-dev
##### Manual
-Downloads are available on the [releases](https://github.com/JamieMason/Jasmine-Matchers/releases) page.
+Downloads are available on the
+[releases](https://github.com/JamieMason/Jasmine-Matchers/releases) page.
diff --git a/scripts/readme/integration.md b/scripts/readme/integration.md
index 595c1b1..c038aa4 100644
--- a/scripts/readme/integration.md
+++ b/scripts/readme/integration.md
@@ -2,7 +2,9 @@
### Browser
-Embed [jasmine-matchers.js](https://github.com/JamieMason/Jasmine-Matchers/blob/master/dist/jasmine-matchers.js) after Jasmine but before your tests.
+Embed
+[jasmine-matchers.js](https://github.com/JamieMason/Jasmine-Matchers/blob/master/dist/jasmine-matchers.js)
+after Jasmine but before your tests.
### Jest
@@ -20,11 +22,15 @@ import JasmineExpect from 'jasmine-expect';
### Karma
-Integration is easy with the [karma-jasmine-matchers](https://github.com/JamieMason/karma-jasmine-matchers) plugin.
+Integration is easy with the
+[karma-jasmine-matchers](https://github.com/JamieMason/karma-jasmine-matchers)
+plugin.
### Node.js
-Use the [Jasmine CLI](https://www.npmjs.com/package/jasmine) and include the path to where Jasmine Matchers is installed in the `helpers` array of your `spec/support/jasmine.json`.
+Use the [Jasmine CLI](https://www.npmjs.com/package/jasmine) and include the
+path to where Jasmine Matchers is installed in the `helpers` array of your
+`spec/support/jasmine.json`.
```json
{
@@ -42,8 +48,8 @@ If you are using TypeScript, you might want to
`npm install @types/jasmine-expect --save-dev` in order to prevent your IDE from
complaining about the new Matchers.
-Also, if you run into TypeScript compilation errors when running your tests,
-add `"jasmine-expect"` to the `"types"` array in your tests' `tsconfig` file.
+Also, if you run into TypeScript compilation errors when running your tests, add
+`"jasmine-expect"` to the `"types"` array in your tests' `tsconfig` file.
As an example, for an Angular CLI based project, this would be your
`tsconfig.spec.json` file:
@@ -56,26 +62,24 @@ As an example, for an Angular CLI based project, this would be your
"baseUrl": "./",
"module": "commonjs",
"target": "es5",
- "types": [
- "jasmine",
- "node",
- "jasmine-expect"
- ]
+ "types": ["jasmine", "node", "jasmine-expect"]
},
- "files": [
- "test.ts"
- ],
- "include": [
- "**/*.spec.ts",
- "**/*.d.ts"
- ]
+ "files": ["test.ts"],
+ "include": ["**/*.spec.ts", "**/*.d.ts"]
}
```
### Sublime Text
-[Jasmine-Matchers-Snippets](https://github.com/JamieMason/Jasmine-Matchers-Snippets) or [Jasmine-Matchers-ES6-Snippets](https://github.com/JamieMason/Jasmine-Matchers-ES6-Snippets) can be installed with [Package Control](https://packagecontrol.io/packages/Jasmine%20Matchers%20Snippets) to ease development with Jasmine Matchers in Sublime Text.
+[Jasmine-Matchers-Snippets](https://github.com/JamieMason/Jasmine-Matchers-Snippets)
+or
+[Jasmine-Matchers-ES6-Snippets](https://github.com/JamieMason/Jasmine-Matchers-ES6-Snippets)
+can be installed with
+[Package Control](https://packagecontrol.io/packages/Jasmine%20Matchers%20Snippets)
+to ease development with Jasmine Matchers in Sublime Text.
### Tern
-There is a [Plugin](https://github.com/ik9999/tern-jasminematchers) for [Tern](https://github.com/ternjs/tern) to auto-complete matchers in your Text Editor.
+There is a [Plugin](https://github.com/ik9999/tern-jasminematchers) for
+[Tern](https://github.com/ternjs/tern) to auto-complete matchers in your Text
+Editor.
diff --git a/scripts/readme/matchers.md b/scripts/readme/matchers.md
index adff952..7dbfc55 100644
--- a/scripts/readme/matchers.md
+++ b/scripts/readme/matchers.md
@@ -5,25 +5,43 @@ The [Jasmine testing framework](http://jasmine.github.io/) from
[default set of matchers](http://jasmine.github.io/edge/introduction.html#section-Expectations);
```js
-{{DEFAULT_MATCHERS}}
+{
+ {
+ DEFAULT_MATCHERS;
+ }
+}
```
-and this [default set of asymmetric matchers](http://jasmine.github.io/2.4/introduction.html#section-Matching_Anything_with_%3Ccode%3Ejasmine.any%3C/code%3E);
+and this
+[default set of asymmetric matchers](http://jasmine.github.io/2.4/introduction.html#section-Matching_Anything_with_%3Ccode%3Ejasmine.any%3C/code%3E);
```js
-{{DEFAULT_ASYMMETRIC_MATCHERS}}
+{
+ {
+ DEFAULT_ASYMMETRIC_MATCHERS;
+ }
+}
```
## Matchers
-[Jasmine-Matchers](https://github.com/JamieMason/Jasmine-Matchers) adds the following matchers;
+[Jasmine-Matchers](https://github.com/JamieMason/Jasmine-Matchers) adds the
+following matchers;
```js
-{{ADDITIONAL_MATCHERS}}
+{
+ {
+ ADDITIONAL_MATCHERS;
+ }
+}
```
## Asymmetric Matchers
```js
-{{ADDITIONAL_ASYMMETRIC_MATCHERS}}
+{
+ {
+ ADDITIONAL_ASYMMETRIC_MATCHERS;
+ }
+}
```
diff --git a/scripts/readme/overview.md b/scripts/readme/overview.md
index a18fbf1..561e42b 100644
--- a/scripts/readme/overview.md
+++ b/scripts/readme/overview.md
@@ -3,7 +3,8 @@
##### What
A huge library of test matchers for a range of common use-cases, compatible with
-all versions of [Jasmine](http://jasmine.github.io/) and [Jest](http://facebook.github.io/jest/).
+all versions of [Jasmine](http://jasmine.github.io/) and
+[Jest](http://facebook.github.io/jest/).
##### Why
diff --git a/test/after.spec.js b/test/after.spec.js
index a9e1b1d..62db74c 100644
--- a/test/after.spec.js
+++ b/test/after.spec.js
@@ -6,6 +6,8 @@ describe('any.after', () => {
shared.spy = callSpy(new Date('2013-01-01T00:00:00.000Z'));
});
it('should confirm', () => {
- expect(shared.spy).toHaveBeenCalledWith(any.after(new Date('1998-08-12T01:00:00.000Z')));
+ expect(shared.spy).toHaveBeenCalledWith(
+ any.after(new Date('1998-08-12T01:00:00.000Z'))
+ );
});
});
diff --git a/test/before.spec.js b/test/before.spec.js
index 30a3ffd..f75e844 100644
--- a/test/before.spec.js
+++ b/test/before.spec.js
@@ -6,6 +6,8 @@ describe('any.before', () => {
shared.spy = callSpy(new Date('1998-08-12T01:00:00.000Z'));
});
it('should confirm', () => {
- expect(shared.spy).toHaveBeenCalledWith(any.before(new Date('2013-01-01T00:00:00.000Z')));
+ expect(shared.spy).toHaveBeenCalledWith(
+ any.before(new Date('2013-01-01T00:00:00.000Z'))
+ );
});
});
diff --git a/test/lib/describeToBeArrayOfX.js b/test/lib/describeToBeArrayOfX.js
index 1feae38..0ea48a7 100644
--- a/test/lib/describeToBeArrayOfX.js
+++ b/test/lib/describeToBeArrayOfX.js
@@ -5,14 +5,20 @@ module.exports = function describeToBeArrayOfX(name, options) {
describe('when invoked', () => {
describe('when subject is a true Array', () => {
describe('when subject has no members', () => {
- it('should confirm (an empty array of ' + options.type + 's is valid)', () => {
- expect([])[name]();
- });
+ it(
+ 'should confirm (an empty array of ' + options.type + 's is valid)',
+ () => {
+ expect([])[name]();
+ }
+ );
});
describe('when subject has members', () => {
- describe('when subject has a mix of ' + options.type + 's and other items', () => {
- it('should deny', options.whenMixed);
- });
+ describe(
+ 'when subject has a mix of ' + options.type + 's and other items',
+ () => {
+ it('should deny', options.whenMixed);
+ }
+ );
describe('when subject has only ' + options.type + 's', () => {
it('should confirm', options.whenValid);
});
diff --git a/test/lib/getArgumentsObject.js b/test/lib/getArgumentsObject.js
index c2f2d3f..e080b61 100644
--- a/test/lib/getArgumentsObject.js
+++ b/test/lib/getArgumentsObject.js
@@ -1,5 +1,5 @@
module.exports = function getArgumentsObject() {
- return (function () {
+ return (function() {
return arguments;
})(1, 2, 3);
};
diff --git a/test/shorterThan.spec.js b/test/shorterThan.spec.js
index 569f0ef..cb21fb0 100644
--- a/test/shorterThan.spec.js
+++ b/test/shorterThan.spec.js
@@ -6,6 +6,8 @@ describe('any.shorterThan', () => {
shared.spy = callSpy('skeletor');
});
it('should confirm', () => {
- expect(shared.spy).toHaveBeenCalledWith(any.shorterThan('trogdor the burninator'));
+ expect(shared.spy).toHaveBeenCalledWith(
+ any.shorterThan('trogdor the burninator')
+ );
});
});
diff --git a/test/toBeAfter.spec.js b/test/toBeAfter.spec.js
index 2006026..a69e836 100644
--- a/test/toBeAfter.spec.js
+++ b/test/toBeAfter.spec.js
@@ -3,12 +3,16 @@ describe('toBeAfter', () => {
describe('when value is a Date', () => {
describe('when date occurs after another', () => {
it('should confirm', () => {
- expect(new Date('2013-01-01T01:00:00.000Z')).toBeAfter(new Date('2013-01-01T00:00:00.000Z'));
+ expect(new Date('2013-01-01T01:00:00.000Z')).toBeAfter(
+ new Date('2013-01-01T00:00:00.000Z')
+ );
});
});
describe('when date does NOT occur after another', () => {
it('should deny', () => {
- expect(new Date('2013-01-01T00:00:00.000Z')).not.toBeAfter(new Date('2013-01-01T01:00:00.000Z'));
+ expect(new Date('2013-01-01T00:00:00.000Z')).not.toBeAfter(
+ new Date('2013-01-01T01:00:00.000Z')
+ );
});
});
});
diff --git a/test/toBeBefore.spec.js b/test/toBeBefore.spec.js
index 414d1f3..7e1e5d4 100644
--- a/test/toBeBefore.spec.js
+++ b/test/toBeBefore.spec.js
@@ -3,12 +3,16 @@ describe('toBeBefore', () => {
describe('when value is a Date', () => {
describe('when date occurs before another', () => {
it('should confirm', () => {
- expect(new Date('2013-01-01T00:00:00.000Z')).toBeBefore(new Date('2013-01-01T01:00:00.000Z'));
+ expect(new Date('2013-01-01T00:00:00.000Z')).toBeBefore(
+ new Date('2013-01-01T01:00:00.000Z')
+ );
});
});
describe('when date does NOT occur before another', () => {
it('should deny', () => {
- expect(new Date('2013-01-01T01:00:00.000Z')).not.toBeBefore(new Date('2013-01-01T00:00:00.000Z'));
+ expect(new Date('2013-01-01T01:00:00.000Z')).not.toBeBefore(
+ new Date('2013-01-01T00:00:00.000Z')
+ );
});
});
});
diff --git a/test/toBeEmptyObject.spec.js b/test/toBeEmptyObject.spec.js
index 29c2370..bf22900 100644
--- a/test/toBeEmptyObject.spec.js
+++ b/test/toBeEmptyObject.spec.js
@@ -1,7 +1,7 @@
describe('toBeEmptyObject', () => {
let Foo;
beforeEach(() => {
- Foo = function () {};
+ Foo = function() {};
});
describe('when invoked', () => {
describe('when subject IS an Object with no instance members', () => {
diff --git a/test/toBeHtmlString.spec.js b/test/toBeHtmlString.spec.js
index 02ebdf4..cd0970d 100644
--- a/test/toBeHtmlString.spec.js
+++ b/test/toBeHtmlString.spec.js
@@ -4,7 +4,8 @@ describe('toBeHtmlString', () => {
let ngMultiLine;
beforeEach(() => {
ngMultiLine = '';
- ngMultiLine += '';
+ ngMultiLine +=
+ '';
ngMultiLine += '\n';
ngMultiLine += ' Watch with Google TV';
ngMultiLine += '\n';
@@ -13,9 +14,15 @@ describe('toBeHtmlString', () => {
});
it('should confirm', () => {
expect('text').toBeHtmlString();
- expect('baz').toBeHtmlString();
- expect('').toBeHtmlString();
- expect('').toBeHtmlString();
+ expect(
+ 'baz'
+ ).toBeHtmlString();
+ expect(
+ ''
+ ).toBeHtmlString();
+ expect(
+ ''
+ ).toBeHtmlString();
expect(ngMultiLine).toBeHtmlString();
});
});
diff --git a/test/toBeNonEmptyObject.spec.js b/test/toBeNonEmptyObject.spec.js
index d3bd78b..4fb2da6 100644
--- a/test/toBeNonEmptyObject.spec.js
+++ b/test/toBeNonEmptyObject.spec.js
@@ -1,7 +1,7 @@
describe('toBeNonEmptyObject', () => {
let Foo;
beforeEach(() => {
- Foo = function () {};
+ Foo = function() {};
});
describe('when invoked', () => {
describe('when subject IS an Object with at least one instance member', () => {
diff --git a/test/toBeObject.spec.js b/test/toBeObject.spec.js
index cec39d3..db032e2 100644
--- a/test/toBeObject.spec.js
+++ b/test/toBeObject.spec.js
@@ -1,7 +1,7 @@
describe('toBeObject', () => {
let Foo;
beforeEach(() => {
- Foo = function () {};
+ Foo = function() {};
});
describe('when invoked', () => {
describe('when subject IS an Object', () => {
diff --git a/test/toHaveEmptyObject.spec.js b/test/toHaveEmptyObject.spec.js
index 989733a..2de8aab 100644
--- a/test/toHaveEmptyObject.spec.js
+++ b/test/toHaveEmptyObject.spec.js
@@ -3,7 +3,7 @@ const describeToHaveX = require('./lib/describeToHaveX');
describe('toHaveEmptyObject', () => {
let Foo;
beforeEach(() => {
- Foo = function () {};
+ Foo = function() {};
});
describeToHaveX('toHaveEmptyObject', () => {
describe('when subject IS an Object with no instance members', () => {
diff --git a/test/toHaveHtmlString.spec.js b/test/toHaveHtmlString.spec.js
index cd4bfab..2199e08 100644
--- a/test/toHaveHtmlString.spec.js
+++ b/test/toHaveHtmlString.spec.js
@@ -6,7 +6,8 @@ describe('toHaveHtmlString', () => {
let ngMultiLine;
beforeEach(() => {
ngMultiLine = '';
- ngMultiLine += '';
+ ngMultiLine +=
+ '';
ngMultiLine += '\n';
ngMultiLine += ' Watch with Google TV';
ngMultiLine += '\n';
@@ -18,7 +19,8 @@ describe('toHaveHtmlString', () => {
memberName: 'text'
}).toHaveHtmlString('memberName');
expect({
- memberName: 'baz'
+ memberName:
+ 'baz'
}).toHaveHtmlString('memberName');
expect({
memberName: ''
diff --git a/test/toHaveIso8601.spec.js b/test/toHaveIso8601.spec.js
index 743dc46..37354f4 100644
--- a/test/toHaveIso8601.spec.js
+++ b/test/toHaveIso8601.spec.js
@@ -2,99 +2,97 @@ const describeToHaveX = require('./lib/describeToHaveX');
describe('toHaveIso8601', () => {
describeToHaveX('toHaveIso8601', () => {
- describe('when member is a Date String conforming to the ISO 8601 standard',
- () => {
- describe('when specified date is valid', () => {
- it('should confirm', () => {
- expect({
- memberName: '2013-07-08T07:29:15.863Z'
- }).toHaveIso8601('memberName');
- expect({
- memberName: '2013-07-08T07:29:15.863'
- }).toHaveIso8601('memberName');
- expect({
- memberName: '2013-07-08T07:29:15'
- }).toHaveIso8601('memberName');
- expect({
- memberName: '2013-07-08T07:29'
- }).toHaveIso8601('memberName');
- expect({
- memberName: '2013-07-08'
- }).toHaveIso8601('memberName');
- });
- });
- describe('when specified date is NOT valid', () => {
- it('should deny', () => {
- expect({
- memberName: '2013-99-12T00:00:00.000Z'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-12-99T00:00:00.000Z'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-01-01T99:00:00.000Z'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-01-01T99:99:00.000Z'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-01-01T00:00:99.000Z'
- }).not.toHaveIso8601('memberName');
- });
- });
- });
- describe('when member is a String NOT conforming to the ISO 8601 standard',
- () => {
- it('should deny', () => {
+ describe('when member is a Date String conforming to the ISO 8601 standard', () => {
+ describe('when specified date is valid', () => {
+ it('should confirm', () => {
expect({
- memberName: '2013-07-08T07:29:15.'
- }).not.toHaveIso8601('memberName');
+ memberName: '2013-07-08T07:29:15.863Z'
+ }).toHaveIso8601('memberName');
expect({
- memberName: '2013-07-08T07:29:'
- }).not.toHaveIso8601('memberName');
+ memberName: '2013-07-08T07:29:15.863'
+ }).toHaveIso8601('memberName');
expect({
- memberName: '2013-07-08T07:2'
- }).not.toHaveIso8601('memberName');
+ memberName: '2013-07-08T07:29:15'
+ }).toHaveIso8601('memberName');
expect({
- memberName: '2013-07-08T07:'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-07-08T07'
- }).not.toHaveIso8601('memberName');
+ memberName: '2013-07-08T07:29'
+ }).toHaveIso8601('memberName');
expect({
- memberName: '2013-07-08T'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-07-0'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-07-'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-07'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-0'
- }).not.toHaveIso8601('memberName');
- expect({
- memberName: '2013-'
- }).not.toHaveIso8601('memberName');
+ memberName: '2013-07-08'
+ }).toHaveIso8601('memberName');
+ });
+ });
+ describe('when specified date is NOT valid', () => {
+ it('should deny', () => {
expect({
- memberName: '2013'
+ memberName: '2013-99-12T00:00:00.000Z'
}).not.toHaveIso8601('memberName');
expect({
- memberName: '201'
+ memberName: '2013-12-99T00:00:00.000Z'
}).not.toHaveIso8601('memberName');
expect({
- memberName: '20'
+ memberName: '2013-01-01T99:00:00.000Z'
}).not.toHaveIso8601('memberName');
expect({
- memberName: '2'
+ memberName: '2013-01-01T99:99:00.000Z'
}).not.toHaveIso8601('memberName');
expect({
- memberName: ''
+ memberName: '2013-01-01T00:00:99.000Z'
}).not.toHaveIso8601('memberName');
});
});
+ });
+ describe('when member is a String NOT conforming to the ISO 8601 standard', () => {
+ it('should deny', () => {
+ expect({
+ memberName: '2013-07-08T07:29:15.'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07-08T07:29:'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07-08T07:2'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07-08T07:'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07-08T07'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07-08T'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07-0'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07-'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-07'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-0'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013-'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2013'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '201'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '20'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: '2'
+ }).not.toHaveIso8601('memberName');
+ expect({
+ memberName: ''
+ }).not.toHaveIso8601('memberName');
+ });
+ });
});
});
diff --git a/test/toHaveNonEmptyObject.spec.js b/test/toHaveNonEmptyObject.spec.js
index be9a0cf..8707067 100644
--- a/test/toHaveNonEmptyObject.spec.js
+++ b/test/toHaveNonEmptyObject.spec.js
@@ -4,7 +4,7 @@ describe('toHaveNonEmptyObject', () => {
describeToHaveX('toHaveNonEmptyObject', () => {
let Foo;
beforeEach(() => {
- Foo = function () {};
+ Foo = function() {};
});
describe('when subject IS an Object with at least one instance member', () => {
it('should confirm', () => {
diff --git a/test/toHaveObject.spec.js b/test/toHaveObject.spec.js
index 6dc2cf5..d35f946 100644
--- a/test/toHaveObject.spec.js
+++ b/test/toHaveObject.spec.js
@@ -4,7 +4,7 @@ describe('toHaveObject', () => {
describeToHaveX('toHaveObject', () => {
let Foo;
beforeEach(() => {
- Foo = function () {};
+ Foo = function() {};
});
describe('when subject IS an Object', () => {
it('should confirm', () => {
diff --git a/test/toThrowAnyError.spec.js b/test/toThrowAnyError.spec.js
index 1f2e78d..4268c3c 100644
--- a/test/toThrowAnyError.spec.js
+++ b/test/toThrowAnyError.spec.js
@@ -4,10 +4,10 @@ describe('toThrowAnyError', () => {
let throwError;
let badReference;
beforeEach(() => {
- throwError = function () {
+ throwError = function() {
throw new Error('wut?');
};
- badReference = function () {
+ badReference = function() {
return doesNotExist.someValue; // eslint-disable-line no-undef
};
});
@@ -19,7 +19,7 @@ describe('toThrowAnyError', () => {
describe('when function does NOT error when invoked', () => {
let noErrors;
beforeEach(() => {
- noErrors = function () {};
+ noErrors = function() {};
});
it('should deny', () => {
expect(noErrors).not.toThrowAnyError();
diff --git a/test/toThrowErrorOfType.spec.js b/test/toThrowErrorOfType.spec.js
index 747af3f..ab052d8 100644
--- a/test/toThrowErrorOfType.spec.js
+++ b/test/toThrowErrorOfType.spec.js
@@ -4,10 +4,10 @@ describe('toThrowErrorOfType', () => {
let throwError;
let badReference;
beforeEach(() => {
- throwError = function () {
+ throwError = function() {
throw new Error('wut?');
};
- badReference = function () {
+ badReference = function() {
return doesNotExist.someValue; // eslint-disable-line no-undef
};
});