<!DOCTYPE html>
<html>
<head>
	<title>cookie.js test suite</title>
	<link rel="stylesheet" href="vendor/mocha.css" />
	<script src="vendor/jquery.js"></script>
	<script src="vendor/mocha.js"></script>
	<script src="vendor/chai.js"></script>
	<script>
	chai.should();
	chai.expect();

	mocha.setup({
		ui: 'bdd',
		ignoreLeaks: true
	});

	$(function () {
		if (navigator.userAgent.indexOf('PhantomJS') < 0) {
			mocha.run();
		}
	});
	</script>
	<script src="../cookie.js"></script>
	<script src="spec.js"></script>
</head>
<body>
	<div id="mocha"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
	<title>cookie.js test suite</title>
	<link rel="stylesheet" href="vendor/mocha.css" />
	<script src="vendor/jquery.js"></script>
	<script src="vendor/mocha.js"></script>
	<script src="vendor/chai.js"></script>
	<script>
	chai.should();
	chai.expect();

	mocha.setup({
		ui: 'bdd',
		ignoreLeaks: true
	});

	$(function () {
		mocha.run();
	});
	</script>
	<script src="../cookie.js"></script>
	<script src="spec.js"></script>
</head>
<body>
	<div id="mocha"></div>
</body>
</html>

Fix test running with phantomjs
Fix test running with phantomjs
