UNPKG

github

Version:
42 lines (36 loc) 1.01 kB
/* * 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("[installations]", function() { var client; var token = testAuth["token"]; beforeEach(function() { client = new Client(); client.authenticate({ type: "integration", token: token }); }); it("should successfully execute POST /installations/:installation_id/access_tokens (create)", function(next) { client.installations.create( { installation_id: "Number", user_id: "Number" }, function(err, res) { Assert.equal(err, null); // other assertions go here next(); } ); }); });