Skip to content

Instantly share code, notes, and snippets.

@jmaicher
Created January 22, 2012 17:41
Show Gist options
  • Save jmaicher/1657799 to your computer and use it in GitHub Desktop.
Save jmaicher/1657799 to your computer and use it in GitHub Desktop.
Usage of the jasmine-require helpers (https://github.com/scottburch/jasmine-require)
describe("Module1", function(){
var Module1;
requireDependencies(['module1/module1'], function(_Module1) {
Module1 = _Module1;
});
it("should be defined", function(){
expect(Module1).toBeDefined();
});
});
@svoynow
Copy link

svoynow commented Sep 14, 2012

Did this work for you? The code inside the requireDependencies function doesn't appear to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment