Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github4

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github4 - npm Package Compare versions

Comparing version 0.4.0 to 0.5.1

test/enterpriseTest.js

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc