Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added listing org. users #265

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
added test for orgMembers, updated documentation
  • Loading branch information
stromajer committed Jan 17, 2016
commit 0e326ecd09f4fbb8e5a6af8dbfee83673ce008fa
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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this dolores company is but probably we should use another one. A better fit would be the GitHub Tools organization.

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"
}