pve-eslint/eslint/tests/tests.htm
Dominik Csapak eb39fafa4f first commit
includes a (minimal) working wrapper

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-06 15:06:03 +02:00

36 lines
898 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Browser smoke test</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<!-- test framework -->
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<script src="../node_modules/sinon/pkg/sinon.js"></script>
<script src="../node_modules/phantomjs-polyfill/bind-polyfill.js"></script>
<!-- source -->
<script src="../build/eslint.js"></script>
<!-- mocha setup -->
<script>
mocha.ui('bdd');
mocha.reporter('html');
</script>
<!-- test suite -->
<script src="lib/eslint.js"></script>
<!-- runner -->
<script>
window.mochaPhantomJS
? mochaPhantomJS.run()
: mocha.run();
</script>
</body>
</html>