-
Notifications
You must be signed in to change notification settings - Fork 113
/
index.html
41 lines (33 loc) · 931 Bytes
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>chai-http browser tests</title>
<link rel="stylesheet" href="node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<!-- Mocha + Chai -->
<script src="node_modules/mocha/mocha.js"></script>
<script>
mocha.setup('bdd');
</script>
<!-- Bootstrap -->
<script type="module">
import * as chaiModule from "./node_modules/chai/chai.js";
import chaiHttp from "./index.js";
const chai = chaiModule.use(chaiHttp);
expect = chai.expect;
chai.should();
</script>
<!-- Tests -->
<script type="module">
import("./test/http.js")
import("./test/request.js")
</script>
<script>
mocha.run();
</script>
</body>
</html>