Skip to content

Instantly share code, notes, and snippets.

View craigbrett17's full-sized avatar

Craig Brett craigbrett17

  • @ZopaUK
  • Cambridgeshire, United Kingdom
View GitHub Profile
@yyx990803
yyx990803 / async.js
Created August 8, 2014 19:03
Simple helper for async tests in Jasmine 1.3 that mimics 2.0 and Mocha
/**
* Jasmine 1.3 async helper
*/
function async (run) {
return function () {
var done = false
waitsFor(function () { return done })
run(function () { done = true })
}