Skip to content

Instantly share code, notes, and snippets.

@khepin
Created February 5, 2013 06:23
Show Gist options
  • Save khepin/4712645 to your computer and use it in GitHub Desktop.
Save khepin/4712645 to your computer and use it in GitHub Desktop.
describe(['class_to_be_tested'], function(my_class){
// Jasmine code
});
<html>
<head>
<title></title>
<script type="text/javascript" src="here link require and require config"></script>
<script type="text/javascript">
require(['file_containing_jasmine_spec_description'], function(){
// This is a callback once the 'file_containing_jasmine_spec_description'
// and all of its dependencies has been loaded.
runJasmine();
});
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment