mirror of
https://git.proxmox.com/git/pve-eslint
synced 2025-08-14 15:03:37 +00:00

includes a (minimal) working wrapper Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
36 lines
898 B
HTML
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>
|