Skip to content

Instantly share code, notes, and snippets.

View sinedied's full-sized avatar
🎯

Yohan Lasorsa sinedied

🎯
View GitHub Profile
/**
* @license Copyright (c) 2012, toddb GoneOpen Limited.
* Available via the MIT or new BSD license.
* based on https://gist.github.com/966776 (mathieul) and forked to https://gist.github.com/1474205
*
* 23/07/13: - added automatic test scoping of callback function arguments.
* - renamed _requires alias to jrequire
*
* jasmine.requirejs() returns a function that will load the file(s) required
* and will wait until it's done before proceeding with running specs.