3.2.0 • Published 5 years ago

github-stub v3.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

github-stub

Build Status Greenkeeper badge codecov

Exports a sinon stub version of the node github client. It also exposes a function to check the stubs were called with valid parameters.

argumentsValid

Every stub has an additional method called argumentsValid. It takes an assertion function as first parameter. The assertion callback should take a truthy value as first parameter and a message as second parameter. The second parameter is an optional sinon spy call to assess.

There is a method on the top level client object with the same name and signature that will call argumentsValid on every API method that was called.

allArgumentsValid

Same as argumentsValid but for every call of the stub.

This is also available on the top level client object.

reset

The top level client object has a reset method that calls reset on every stub it contains.

License

This package is licensed under the MIT license.

3.2.0

5 years ago

3.1.0

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.5.1

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago