diff options
init commit
Diffstat (limited to 'test')
-rw-r--r-- | test/index.html | 29 | ||||
-rw-r--r-- | test/spec/test.js | 11 |
2 files changed, 40 insertions, 0 deletions
diff --git a/test/index.html b/test/index.html new file mode 100644 index 000000000..6498d5fcc --- /dev/null +++ b/test/index.html @@ -0,0 +1,29 @@ +<!doctype html> +<html> +<head> + <meta charset="utf-8"> + <title>Mocha Spec Runner</title> + <link rel="stylesheet" href="../bower_components/mocha/mocha.css"> +</head> +<body> + <div id="mocha"></div> + <script src="../bower_components/mocha/mocha.js"></script> + <script>mocha.setup('bdd');</script> + <script src="../bower_components/chai/chai.js"></script> + <script> + var assert = chai.assert; + var expect = chai.expect; + var should = chai.should(); + </script> + <!-- bower:js --> + <!-- endbower --> + <!-- include source files here... --> + <!-- include spec files here... --> + <script src="spec/test.js"></script> + <script> + if (navigator.userAgent.indexOf('PhantomJS') === -1) { + mocha.run(); + } + </script> +</body> +</html> diff --git a/test/spec/test.js b/test/spec/test.js new file mode 100644 index 000000000..0fca0fb57 --- /dev/null +++ b/test/spec/test.js @@ -0,0 +1,11 @@ +(function () { + 'use strict'; + + describe('Give it some context', function () { + describe('maybe a bit more context here', function () { + it('should run here few assertions', function () { + + }); + }); + }); +})(); |