Created
June 25, 2013 10:52
-
-
Save simonmcmanus/5857607 to your computer and use it in GitHub Desktop.
sublime jasmine running that formats the code to make it nice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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