mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Tests are build with mocha + chai, and you can run them from the command line with `grunt karma` or opening `test/index.html` in your browser. This is a first approach, there are hundreds of tests more that should be added. I’ve ported some tests on PRs but more needs to be done.
29 lines
811 B
HTML
29 lines
811 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>gridster.js tests</title>
|
|
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
|
|
|
|
<link rel="stylesheet" href="../dist/jquery.gridster.css" />
|
|
<script src="../node_modules/jquery/dist/jquery.js"></script>
|
|
<script src="../dist/jquery.gridster.js"></script>
|
|
|
|
|
|
<script src="../node_modules/chai/chai.js"></script>
|
|
<script src="../node_modules/mocha/mocha.js"></script>
|
|
<script>mocha.setup('bdd');</script>
|
|
<link rel="stylesheet" href="lib/test.css" />
|
|
<script src="lib/test_utils.js"></script>
|
|
<script src="index.js"></script>
|
|
<script>
|
|
$(function() {
|
|
mocha.run();
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="mocha"></div>
|
|
<div id="fixture"></div>
|
|
</body>
|
|
</html> |