filehash
Version:
client-side file hashing and checking
38 lines (28 loc) • 845 B
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
<title>Client Tests</title>
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<!-- Your application code -->
<script src="../dist/filehash.js"></script>
<!-- Configure mocha and chai -->
<script>
mocha.setup('bdd');
assert = chai.assert;
expect = chai.expect;
</script>
<!-- Load your tests -->
<script src="tests.js"></script>
<!-- Run those tests! -->
<script>
mocha.run();
</script>
</body>
</html>