polyfill-io-feature-detection
Version:
Feature detection in the browser before loading polyfill using services like polyfill.io
22 lines (19 loc) • 540 B
HTML
<html>
<head>
<title>Mocha Tests</title>
<link rel="stylesheet" href="./../../node_modules/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<script src="./../../node_modules/mocha/mocha.js"></script>
<script src="./../../node_modules/chai/chai.js"></script>
<script>mocha.setup('bdd')</script>
<!-- load code you want to test here -->
<!-- load your test files here -->
<script src="sample.test.js"></script>
<script>
mocha.run();
</script>
</body>
</html>