forked from github-tools/github
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (30 loc) · 790 Bytes
/
index.html
File metadata and controls
31 lines (30 loc) · 790 Bytes
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
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link href="../../node_modules/mocha/mocha.css" rel="stylesheet" />
</head>
<body>
<div id="mocha"></div>
<script src="../../node_modules/mocha/mocha.js"></script>
<script src="../../dist/GitHub.bundle.min.js"></script>
<script>mocha.setup('bdd')</script>
<script>
describe('the dist file', function() {
it('should work', function(done) {
var github = new GitHub();
var gist = github.getGist('e265df71e7532f3a4bdd');
gist.read()
.then(function(http) {
console.log(http.data);
done();
});
});
});
</script>
<script>
mocha.checkLeaks();
mocha.run();
</script>
</body>
</html>