check-type
Version:
Library to check variable type and properties in object.
45 lines (38 loc) • 1.5 kB
HTML
<html lang="en">
<head>
<title>Check-Type Browser Tests</title>
<meta charset="utf-8">
<link rel="stylesheet" href="../../node_modules/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<!-- Test libs -->
<script src="../../bower_components/mocha/mocha.js"></script>
<script src="../../bower_components/chai/chai.js"></script>
<script src="../../bower_components/sinonjs-built/pkg/sinon.js"></script>
<script src="../../bower_components/sinon-chai/lib/sinon-chai.js"></script>
<!-- Fixtures -->
<script src="fixtures/has_property_fixture.js"></script>
<script src="fixtures/has_attribute_fixture.js"></script>
<script src="fixtures/matches_structure_fixture.js"></script>
<!-- Original check value for noConflict test -->
<script>
var check = { previous_value: true };
</script>
<!-- Module -->
<script src="../../bower_components/underscore/underscore.js"></script>
<script src="../../check-type.min.js"></script>
<!-- Test setup -->
<script>
mocha.setup('tdd');
</script>
<script src="check-type.test.js"></script>
<script>
// https://github.com/kmiyashiro/grunt-mocha#optionsrun
if (navigator.userAgent.indexOf('PhantomJS') === -1) {
mocha.run();
}
</script>
</body>
</html>