ok money on create

This commit is contained in:
Peter Cottle 2013-10-26 12:23:44 -07:00
parent f1c3ff9e72
commit 12e921a781
2 changed files with 13 additions and 6 deletions

View file

@ -10,10 +10,10 @@ prompt.get(['command', 'whatItDoes'], function(err, result) {
var headless = new HeadlessGit();
headless.sendCommand(result.command);
setTimeout(function() {
var testCase = '\texpectTreeAsync(' +
"\t\t'" + result.command + "'," +
"\t\t'" + headless.gitEngine.printTree() + "'" +
"\t);";
var testCase = '\t\texpectTreeAsync(\n' +
"\t\t\t'" + result.command + "',\n" +
"\t\t\t'" + headless.gitEngine.printTree() + "'\n" +
"\t\t);\n";
console.log(testCase);
// now add it
@ -23,8 +23,8 @@ prompt.get(['command', 'whatItDoes'], function(err, result) {
var partOne = testFile.slice(0, toSlice);
var partTwo = testFile.slice(toSlice);
var funcCall = "it('" + result.whatItDoes + "', function() {\n" +
testCase + "\n});";
var funcCall = "\tit('" + result.whatItDoes + "', function() {\n" +
testCase + "\t});\n\n";
fs.writeFileSync('./remote.spec.js', partOne + funcCall + partTwo);
}, 100);
});