https://github.com/jaredhanson/chai-oauth2orize-grant
Helpers for testing OAuth2orize grants with the Chai assertion library.
https://github.com/jaredhanson/chai-oauth2orize-grant
Last synced: 12 months ago
JSON representation
Helpers for testing OAuth2orize grants with the Chai assertion library.
- Host: GitHub
- URL: https://github.com/jaredhanson/chai-oauth2orize-grant
- Owner: jaredhanson
- License: mit
- Created: 2013-08-30T15:21:26.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T22:43:21.000Z (almost 9 years ago)
- Last Synced: 2025-06-24T11:58:47.548Z (about 1 year ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# chai-oauth2orize-grant
[](https://www.npmjs.com/package/chai-oauth2orize-grant)
[](https://travis-ci.org/jaredhanson/chai-oauth2orize-grant)
[](https://codeclimate.com/github/jaredhanson/chai-oauth2orize-grant)
[](https://coveralls.io/r/jaredhanson/chai-oauth2orize-grant)
[](https://david-dm.org/jaredhanson/chai-oauth2orize-grant)
Helpers for testing [OAuth2orize](https://github.com/jaredhanson/oauth2orize)
grants with the [Chai](http://chaijs.com/) assertion library.
## Install
$ npm install chai-oauth2orize-grant
## Usage
#### Use Plugin
Use this plugin as you would all other Chai plugins:
```javascript
var chai = require('chai');
chai.use(require('chai-oauth2orize-grant'));
```
#### Implement Test Cases
Once used, the `chai.oauth2orize.grant` helper function will be available to set
up test cases for OAuth2orize grants.
## License
[The MIT License](http://opensource.org/licenses/MIT)
Copyright (c) 2013-2017 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>