Includes base test structure

This commit is contained in:
Zeno Rocha 2015-09-20 00:23:33 -07:00
parent 66c18fbcb4
commit bea448d6c5
3 changed files with 25 additions and 0 deletions

View File

@ -14,6 +14,7 @@
"devDependencies": {
"babelify": "^6.3.0",
"browserify": "^11.1.0",
"mocha": "^2.3.2",
"uglify": "^0.1.5"
},
"scripts": {

3
test/clipboard.js Normal file
View File

@ -0,0 +1,3 @@
describe('Clipboard', () => {
});

21
test/index.html Normal file
View File

@ -0,0 +1,21 @@
<html>
<head>
<meta charset="utf-8">
<title>Mocha Tests</title>
<link rel="stylesheet" href="../node_modules/mocha/mocha.css">
</head>
<body>
<div id="mocha"></div>
<script src="../dist/clipboard.min.js"></script>
<script src="../node_modules/mocha/mocha.js"></script>
<script>mocha.setup('bdd')</script>
<script src="clipboard.js"></script>
<script>
mocha.checkLeaks();
mocha.globals(['Clipboard']);
mocha.run();
</script>
</body>
</html>