Template for doing TDD katas with JavaScript. Uses Jasmine for testing.
- Fork the repo
- Open /test/jasmine.html in a browser to run the tests (1 passing, 1 failing)
- Open /test/example_test.js to read the tests
- Open /src/example.js and fix the code to make the test pass
- Refresh /test/jasmine.html in the browser to run the tests again (2 passing)
When adding files you must also update /test/jasmine.html with <script>
tags to include them when running tests. Look for example.js
and example_test.js
to se how they are included.