forked from gnab/remark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunner.html
35 lines (32 loc) · 1.01 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
<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;
};
if (window.mochaPhantomJS) {
mochaPhantomJS.run();
}
else {
mocha.run();
}
</script>
</body>
</html>