github-fixtures

Github fixtures for tests

npm install github-fixtures
8 downloads in the last week
32 downloads in the last month

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

  1. Clone the repo
  2. npm install
  3. ./node_modules/.bin/object-factory-viewer repo.js (replace repo.js with whatever you want to see)
npm loves you