Skip to content

Commit

Permalink
Revert "Restore template to main"
Browse files Browse the repository at this point in the history
This reverts commit 854ab12.
  • Loading branch information
mark-wiemer committed Oct 11, 2024
1 parent 8a36f0d commit 714ee15
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/browser/template.html → lib/browser/templateFail.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,25 @@
<meta charset="utf-8" />
<title>Mocha</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="mocha.css" />
<link rel="stylesheet" href="../../mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="mocha.js"></script>
<script src="../../mocha.js"></script>
<script>
mocha.setup('bdd');
</script>
<script src="tests.spec.js"></script>
<script>
describe('example', function () {
it('should pass', function () {
return;
});

it('should fail', function () {
throw new Error('fail');
});
});
</script>
<script>
mocha.run();
</script>
Expand Down
30 changes: 30 additions & 0 deletions lib/browser/templatePass.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Mocha</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../../mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../../mocha.js"></script>
<script>
mocha.setup('bdd');
</script>
<script>
describe('example', function () {
it('should pass', function () {
return;
});

// it('should fail', function () {
// throw new Error('fail');
// });
});
</script>
<script>
mocha.run();
</script>
</body>
</html>

0 comments on commit 714ee15

Please sign in to comment.