Comparing version 0.4.0 to 0.5.1
{ | ||
"name": "github4", | ||
"version": "0.4.0", | ||
"version": "0.5.1", | ||
"description": "NodeJS wrapper for the GitHub API", | ||
@@ -38,3 +38,3 @@ "author": "Mike de Boer <info@mikedeboer.nl>", | ||
"scripts": { | ||
"test": "./node_modules/.bin/mocha" | ||
"test": "mocha" | ||
}, | ||
@@ -41,0 +41,0 @@ "license": "MIT", |
@@ -147,15 +147,12 @@ ##### NOTE: [mikedeboer/node-github](https://github.com/mikedeboer/node-github) seems to no longer be maintained so I forked it here and am working on applying PRs and issues from that repo. See progress [here](https://github.com/kaizensoze/github4/wiki/Transition-from-upstream). | ||
Install mocha | ||
```bash | ||
$ npm install mocha -g | ||
``` | ||
Run all tests | ||
Run all tests | ||
```bash | ||
$ mocha | ||
$ npm test | ||
``` | ||
Or run a specific test | ||
```bash | ||
$ mocha test/issuesTest.js | ||
$ npm test test/issuesTest.js | ||
``` | ||
@@ -162,0 +159,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -16,0 +16,0 @@ |
@@ -13,3 +13,3 @@ /* | ||
var Assert = require("assert"); | ||
var Client = require("./../../index"); | ||
var Client = require("./../index"); | ||
var testAuth = require("./../test_auth.json"); | ||
@@ -105,2 +105,15 @@ | ||
it("should successfully execute DELETE /users/:user/site_admin (demote)", function(next) { | ||
client.users.demote( | ||
{ | ||
user: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /user/memberships/orgs/:org (editOrganizationMembership)", function(next) { | ||
@@ -325,2 +338,28 @@ client.users.editOrganizationMembership( | ||
it("should successfully execute PUT /users/:user/site_admin (promote)", function(next) { | ||
client.users.promote( | ||
{ | ||
user: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PUT /users/:user/suspended (suspend)", function(next) { | ||
client.users.suspend( | ||
{ | ||
user: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute DELETE /user/following/:user (unfollowUser)", function(next) { | ||
@@ -339,2 +378,15 @@ client.users.unfollowUser( | ||
it("should successfully execute DELETE /users/:user/suspended (unsuspend)", function(next) { | ||
client.users.unsuspend( | ||
{ | ||
user: "String" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
it("should successfully execute PATCH /user (update)", function(next) { | ||
@@ -341,0 +393,0 @@ client.users.update( |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
484260
26
13905
162