Sha256: 9e623b51f0bcf6c16e929351cee4324424697a44fffa842c30e5c58b37a9ab17

Contents?: true

Size: 1.38 KB

Versions: 62

Compression:

Stored size: 1.38 KB

Contents

/*
 * 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("./../../index");

describe("[gitignore]", function() {
    var client;

    beforeEach(function() {
        client = new Client({
            version: "3.0.0"
        });
    });

    it("should successfully execute GET /gitignore/templates (templates)",  function(next) {
        client.gitignore.templates(
            {},
            function(err, res) {
                Assert.equal(err, null);
                // other assertions go here
                Assert.ifError(err);
                Assert(Array.isArray(res));
                Assert(res.length > 10);
                next();
            }
        );
    });

    it("should successfully execute GET /gitignore/templates/:name (template)",  function(next) {
        client.gitignore.template(
            {
                name: "C"
            },
            function(err, res) {
                Assert.equal(err, null);
                // other assertions go here
                Assert.ifError(err);
                Assert('name' in res);
                Assert('source' in res);
                Assert(typeof res.source === 'string');
                next();
            }
        );
    });
});

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.6.2 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.6.1 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.6 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.9 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.8 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.7 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.6 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.5 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js
trusty-festivity-extension-2.5.4 node_modules/bower/node_modules/github/api/v3.0.0/gitignoreTest.js