Skip to content

Instantly share code, notes, and snippets.

@bradparker
Created August 30, 2015 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradparker/4323374941672e667648 to your computer and use it in GitHub Desktop.
Save bradparker/4323374941672e667648 to your computer and use it in GitHub Desktop.
JS Scratch Pad
<!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