lil-event
Version:
Tiny event bus inspired in Node's EventEmitter
25 lines (24 loc) • 705 B
HTML
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="../node_modules/mocha-phantomjs/node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="../node_modules/mocha-phantomjs/node_modules/mocha/mocha.js"></script>
<script src="../node_modules/chai/chai.js"></script>
<script>
mocha.ui('bdd')
mocha.reporter('html')
require = function (module) {
return module === 'chai' ? chai : lil.Event
}
</script>
<script src="../event.js"></script>
<script src="event.js"></script>
<script>
if (window.mochaPhantomJS) mochaPhantomJS.run()
else mocha.run()
</script>
</body>
</html>