-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add integrations/get-installations to routes.json
- Loading branch information
1 parent
25d4466
commit 8e7cc81
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright 2012 Cloud9 IDE, Inc. | ||
* | ||
* This product includes software developed by | ||
* Cloud9 IDE, Inc (http://c9.io). | ||
* | ||
* Author: Mike de Boer <info@mikedeboer.nl> | ||
*/ | ||
|
||
"use strict"; | ||
|
||
var Assert = require("assert"); | ||
var Client = require("./../lib/index"); | ||
var testAuth = require("./../testAuth.json"); | ||
|
||
describe("[integrations]", function() { | ||
var client; | ||
var token = testAuth["token"]; | ||
|
||
beforeEach(function() { | ||
client = new Client(); | ||
client.authenticate({ | ||
type: "oauth", | ||
token: token | ||
}); | ||
}); | ||
|
||
it("should successfully execute GET /integration/installations (getInstallations)", function(next) { | ||
client.integrations.getInstallations( | ||
{ | ||
page: "Number", | ||
per_page: "Number" | ||
}, | ||
function(err, res) { | ||
Assert.equal(err, null); | ||
// other assertions go here | ||
next(); | ||
} | ||
); | ||
}); | ||
}); |