Skip to content

Instantly share code, notes, and snippets.

@simonmcmanus
Created June 25, 2013 10:52
Show Gist options
  • Save simonmcmanus/5857607 to your computer and use it in GitHub Desktop.
Save simonmcmanus/5857607 to your computer and use it in GitHub Desktop.
sublime jasmine running that formats the code to make it nice
var sys = require('util');
var exec = require('child_process').exec;
var puts = function puts(error, stdout, stderr) {
var out = stdout.split('\n');
if(out[2].slice(0, 8) === 'Finished') {
console.log(out[3]);
}else {
console.log(stdout);
}
};
exec("jasmine-node --noColor ../src/spec/", puts);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment