Skip to content

Commit

Permalink
added test for orgMembers, updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stromajer committed Jan 17, 2016
1 parent d5c2a45 commit 0e326ec
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ List organizations the autenticated user belongs to.
user.orgs(function(err, orgs) {});
```

List organization members by organization ID

```js
user.orgMembers(orgId);
```

List authenticated user's gists.

```js
Expand Down
7 changes: 7 additions & 0 deletions test/test.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ describe('Github.User', function() {
});
});

it('should get user.orgMembers from "dolores" company', function(done) {
user.orgMembers(testUser.ORGID, function(err) {
should.not.exist(err);
done();
});
});

it('should get user.gists', function(done) {
user.gists(function(err) {
should.not.exist(err);
Expand Down
7 changes: 6 additions & 1 deletion test/user.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
{"USERNAME": "mikedeboertest", "PASSWORD": "test1324", "REPO": "github"}
{
"USERNAME": "mikedeboertest",
"PASSWORD": "test1324",
"REPO": "github",
"ORGID": "12733"
}

0 comments on commit 0e326ec

Please sign in to comment.