oojspec example without test runner
https://github.com/rosenfeld/oojspec
HTML
<script src="http://oojspec.herokuapp.com/assets/oojspec.js"></script>
<link rel="stylesheet" href="http://oojspec.herokuapp.com/assets/oojspec.css">
Run
JavaScript
oojspec.describe('Some description', function(s){
s.example('async examples work', function(s) {
var a = false;
setTimeout(function(){ a = true; }, 200);
s.waitsFor(function(){ return a; });
s.runs(function(){ s.assert(true); });
});
});
oojspec.runSpecs();