forked from octokit/octokit.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmiscTest.js
More file actions
150 lines (136 loc) · 3.98 KB
/
Copy pathmiscTest.js
File metadata and controls
150 lines (136 loc) · 3.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
/*
* Copyright 2012 Cloud9 IDE, Inc.
*
* This product includes software developed by
* Cloud9 IDE, Inc (http://c9.io).
*
* Author: Mike de Boer <[email protected]>
*/
"use strict";
var Assert = require("assert");
var Client = require("./../lib/index");
var testAuth = require("./../testAuth.json");
describe("[misc]", function() {
var client;
var token = testAuth["token"];
beforeEach(function() {
client = new Client();
client.authenticate({
type: "oauth",
token: token
});
});
it("should successfully execute GET /emojis (getEmojis)", function(next) {
client.misc.getEmojis(
{},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /gitignore/templates/:name (getGitignoreTemplate)", function(next) {
client.misc.getGitignoreTemplate(
{
name: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /gitignore/templates (getGitignoreTemplates)", function(next) {
client.misc.getGitignoreTemplates(
{},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /licenses/:license (getLicense)", function(next) {
client.misc.getLicense(
{
license: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /licenses (getLicenses)", function(next) {
client.misc.getLicenses(
{},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /meta (getMeta)", function(next) {
client.misc.getMeta(
{},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /rate_limit (getRateLimit)", function(next) {
client.misc.getRateLimit(
{},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute GET /repos/:owner/:repo/license (getRepoLicense)", function(next) {
client.misc.getRepoLicense(
{
owner: "String",
repo: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute POST /markdown (renderMarkdown)", function(next) {
client.misc.renderMarkdown(
{
text: "String",
mode: "String",
context: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
it("should successfully execute POST /markdown/raw (renderMarkdownRaw)", function(next) {
client.misc.renderMarkdownRaw(
{
data: "String"
},
function(err, res) {
Assert.equal(err, null);
// other assertions go here
next();
}
);
});
});