Created
August 30, 2015 12:32
-
-
Save bradparker/4323374941672e667648 to your computer and use it in GitHub Desktop.
JS Scratch Pad
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Scratch pad</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.css" /> | |
</head> | |
<body> | |
<div id="mocha"></div> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/chai/3.2.0/chai.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.2.5/mocha.min.js"></script> | |
<script> | |
mocha.setup('bdd') | |
window.expect = chai.expect | |
</script> | |
<script> | |
describe('A context', function () { | |
it('contains some examples', function () { | |
expect(1).to.equal(1) | |
}) | |
it('which might be stupid', function () { | |
expect(1).to.equal(2) | |
}) | |
}) | |
</script> | |
<script> | |
mocha.run() | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment