Skip to content

Instantly share code, notes, and snippets.

@just-boris
Created December 10, 2015 11:14
Show Gist options
  • Save just-boris/720011b9686704c67f52 to your computer and use it in GitHub Desktop.
Save just-boris/720011b9686704c67f52 to your computer and use it in GitHub Desktop.
Jasmine Program API
var jasmine = new Jasmine();
jasmine.loadConfig({
spec_dir: 'src',
spec_files: [
'js/**/*.spec.js'
],
helpers: ['spec/bootstrap.js']
});
jasmine.onComplete(function(passed) {
done(passed ? null : 'Some tests has been failed');
});
jasmine.execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment