github-fixtures

0.2.0 • Public • Published

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)

/github-fixtures/

    Package Sidebar

    Install

    npm i github-fixtures

    Weekly Downloads

    1

    Version

    0.2.0

    License

    Apache2

    Last publish

    Collaborators

    • lights-of-apollo