| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 81addc3 commit 289a199
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,6 +45,10 @@ before(function() { | |||
| 45 | 45 | }) | |
| 46 | 46 | .then(function() { | |
| 47 | 47 | return fse.mkdir(local("home")); | |
| 48 | + }) | ||
| 49 | + .then(function() { | ||
| 50 | + return fse.writeFile(local("home", ".gitconfig"), | ||
| 51 | + "[user]\n name = John Doe\n email = johndoe@example.com"); | ||
| 48 | 52 | }); | |
| 49 | 53 | }); | |
| 50 | 54 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,13 +15,12 @@ describe("Config", function() { | |||
| 15 | 15 | ||
| 16 | 16 | it("can get and set a global value", function() { | |
| 17 | 17 | var savedUserName; | |
| 18 | - var dummyUserName = "Dummy O'Fakey"; | ||
| 19 | 18 | ||
| 20 | 19 | function finallyFn() { | |
| 21 | 20 | return exec("git config --global user.name \"" + savedUserName + "\""); | |
| 22 | 21 | } | |
| 23 | 22 | ||
| 24 | - return exec("git config --global user.name \"" + dummyUserName + "\"") | ||
| 23 | + return exec("git config --global user.name") | ||
| 25 | 24 | .then(function(userName) { | |
| 26 | 25 | savedUserName = userName.trim(); | |
| 27 | 26 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments