Skip to content

Releases: octokit/fixtures

v1.2.1

19 Sep 03:38
Compare
Choose a tag to compare

1.2.1 (2017-09-19)

Bug Fixes

  • package: install nock from npm (a8af418)

v1.2.0

18 Sep 03:19
Compare
Choose a tag to compare

1.2.0 (2017-09-18)

Bug Fixes

  • fixtures: set IDs to 1 (0638a9e)
  • normalization: handle array responses (b4e83e1)
  • normalization: handle responses without body (291c3aa)
  • normalization: set id to 1 in location response header (2963db2)
  • normalization: set IDs to 1 (0f8556e)

Features

  • normalization: invitation (7bbd343)
  • scenario: add and remove repository collaborator (9c3b3d1)

v1.1.1

16 Sep 00:56
Compare
Choose a tag to compare

1.1.1 (2017-09-16)

Bug Fixes

v1.1.0

15 Sep 22:58
Compare
Choose a tag to compare

1.1.0 (2017-09-15)

Features

v1.0.0

05 Sep 02:50
Compare
Choose a tag to compare

1.0.0 (2017-09-05)

Features

  • A scenario is an object (or array of objects) to describe requests
    {
      method: 'get',
      url: 'https://api.github.com/repos/octocat/hello-world',
      headers: {
        Accept: 'application/vnd.github.v3+json'
      }
    }
    
  • For more complex scenarios, asynchronous functions can be used
  • Provides a standalone mock server utilising existing fixtures that all Octokit library developers can use to test against
  • Checks ones per day if GitHub’s APIs have changed (using a Travis cron job). If there are changes, automatically creates (or updates) a pull request that looks like this: gr2m-fixtures-cat/sandbox#18