forked from gnab/remark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunner.html
47 lines (42 loc) · 1.04 KB
/
runner.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
42
43
44
45
46
47
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/mocha/mocha.js"></script>
<script>
mocha.ui('bdd');
mocha.reporter('html');
</script>
<script src="../out/remark.js"></script>
<script src="../out/tests.js"></script>
<script>
should.__proto__.calledWithExactly = function () {
var args = Array.prototype.slice.call(arguments);
this.assert(
this.obj.calledWithExactly.apply(this.obj, args),
function () {
return (
'expected ' +
this.inspect +
' to be called with ' +
JSON.stringify(args)
);
},
function () {
return (
'expected ' +
this.inspect +
' not to be called with ' +
JSON.stringify(args)
);
},
);
return this;
};
mocha.run();
</script>
</body>
</html>