Github Fixtures
Github fixtures for shepherd tests.
Fixtures
All fixtures are based on the github api docs
- Commit
- PullRequest
- PullRequestRef
- Repo
- User
- Link
var Repo = require('github-fixtures/repo');
User = require('github-fixtures/user');
PullRequest = require('github-fixtures/pull_request'),
Commit = require('github-fixtures/commit');
Repo.create({
// deep merge happens in all the object operations
owner: { login: 'woot!' },
})
See object factory for usage of factories.
Viewing contents of fixture
- Clone the repo
- npm install
- ./node_modules/.bin/object-factory-viewer repo.js (replace repo.js with whatever you want to see)