Skip to content

Commit 714ee15

Browse files
committed
Revert "Restore template to main"
This reverts commit 854ab12.
1 parent 8a36f0d commit 714ee15

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

lib/browser/template.html renamed to lib/browser/templateFail.html

+13-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@
44
<meta charset="utf-8" />
55
<title>Mocha</title>
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<link rel="stylesheet" href="mocha.css" />
7+
<link rel="stylesheet" href="../../mocha.css" />
88
</head>
99
<body>
1010
<div id="mocha"></div>
11-
<script src="mocha.js"></script>
11+
<script src="../../mocha.js"></script>
1212
<script>
1313
mocha.setup('bdd');
1414
</script>
15-
<script src="tests.spec.js"></script>
15+
<script>
16+
describe('example', function () {
17+
it('should pass', function () {
18+
return;
19+
});
20+
21+
it('should fail', function () {
22+
throw new Error('fail');
23+
});
24+
});
25+
</script>
1626
<script>
1727
mocha.run();
1828
</script>

lib/browser/templatePass.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Mocha</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<link rel="stylesheet" href="../../mocha.css" />
8+
</head>
9+
<body>
10+
<div id="mocha"></div>
11+
<script src="../../mocha.js"></script>
12+
<script>
13+
mocha.setup('bdd');
14+
</script>
15+
<script>
16+
describe('example', function () {
17+
it('should pass', function () {
18+
return;
19+
});
20+
21+
// it('should fail', function () {
22+
// throw new Error('fail');
23+
// });
24+
});
25+
</script>
26+
<script>
27+
mocha.run();
28+
</script>
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)