PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
github
/
api
/
v3.0.0
/* * 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("[markdown]", function() { var client; var token = "c286e38330e15246a640c2cf32a45ea45d93b2ba"; beforeEach(function() { client = new Client({ version: "3.0.0" }); /*client.authenticate({ type: "oauth", token: token });*/ }); it("should successfully execute POST /markdown (render)", function(next) { client.markdown.render( { text: "Hello world github/linguist#1 **cool**, and #1!", mode: "gfm", context: "github/gollem" }, function(err, res) { Assert.equal(err, null); console.log(res); next(); } ); }); it("should successfully execute POST /markdown/raw (render)", function(next) { client.markdown.renderRaw( { data: "Hello world github/linguist#1 **cool**, and #1!" }, function(err, res) { Assert.equal(err, null); console.log(res); next(); } ); }); });
[-] issues.js
[edit]
[-] pullRequestsTest.js
[edit]
[-] gitdataTest.js
[edit]
[+]
..
[-] pullRequests.js
[edit]
[-] routes.json
[edit]
[-] miscTest.js
[edit]
[-] user.js
[edit]
[-] reposTest.js
[edit]
[-] gistsTest.js
[edit]
[-] gitdata.js
[edit]
[-] orgsTest.js
[edit]
[-] gitignore.js
[edit]
[-] authorizationTest.js
[edit]
[-] markdownTest.js
[edit]
[-] authorization.js
[edit]
[-] statusesTest.js
[edit]
[-] search.js
[edit]
[-] index.js
[edit]
[-] events.js
[edit]
[-] misc.js
[edit]
[-] releases.js
[edit]
[-] orgs.js
[edit]
[-] issuesTest.js
[edit]
[-] repos.js
[edit]
[-] userTest.js
[edit]
[-] gists.js
[edit]
[-] statuses.js
[edit]
[-] eventsTest.js
[edit]
[-] markdown.js
[edit]
[-] searchTest.js
[edit]
[-] releasesTest.js
[edit]
[-] gitignoreTest.js
[edit]