mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 08:50:06 +02:00
ok money on create
This commit is contained in:
parent
f1c3ff9e72
commit
12e921a781
2 changed files with 13 additions and 6 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue