| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 530290d commit e954ae5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,7 +43,7 @@ describe("Index", function() { | |||
| 43 | 43 | var fileNames = Object.keys(fileContent); | |
| 44 | 44 | ||
| 45 | 45 | return Promise.all(fileNames.map(function(fileName) { | |
| 46 | - fse.writeFile(path.join(repo.workdir(), fileName), fileContent[fileName]); | ||
| 46 | + return fse.writeFile(path.join(repo.workdir(), fileName), fileContent[fileName]); | ||
| 47 | 47 | })) | |
| 48 | 48 | .then(function() { | |
| 49 | 49 | return index.addAll(); | |
@@ -57,7 +57,7 @@ describe("Index", function() { | |||
| 57 | 57 | }) | |
| 58 | 58 | .then(function() { | |
| 59 | 59 | return Promise.all(fileNames.map(function(fileName) { | |
| 60 | - fse.remove(path.join(repo.workdir(), fileName)); | ||
| 60 | + return fse.remove(path.join(repo.workdir(), fileName)); | ||
| 61 | 61 | })); | |
| 62 | 62 | }) | |
| 63 | 63 | .then(function() { | |
@@ -76,7 +76,7 @@ describe("Index", function() { | |||
| 76 | 76 | var fileNames = Object.keys(fileContent); | |
| 77 | 77 | ||
| 78 | 78 | return Promise.all(fileNames.map(function(fileName) { | |
| 79 | - fse.writeFile(path.join(repo.workdir(), fileName), fileContent[fileName]); | ||
| 79 | + return fse.writeFile(path.join(repo.workdir(), fileName), fileContent[fileName]); | ||
| 80 | 80 | })) | |
| 81 | 81 | .then(function() { | |
| 82 | 82 | return index.addAll(); | |
@@ -99,7 +99,7 @@ describe("Index", function() { | |||
| 99 | 99 | }) | |
| 100 | 100 | .then(function() { | |
| 101 | 101 | return Promise.all(fileNames.map(function(fileName) { | |
| 102 | - fse.remove(path.join(repo.workdir(), fileName)); | ||
| 102 | + return fse.remove(path.join(repo.workdir(), fileName)); | ||
| 103 | 103 | })); | |
| 104 | 104 | }) | |
| 105 | 105 | .then(function() { | |
@@ -117,7 +117,7 @@ describe("Index", function() { | |||
| 117 | 117 | var fileNames = Object.keys(fileContent); | |
| 118 | 118 | ||
| 119 | 119 | return Promise.all(fileNames.map(function(fileName) { | |
| 120 | - fse.writeFile(path.join(repo.workdir(), fileName), fileContent[fileName]); | ||
| 120 | + return fse.writeFile(path.join(repo.workdir(), fileName), fileContent[fileName]); | ||
| 121 | 121 | })) | |
| 122 | 122 | .then(function() { | |
| 123 | 123 | return index.addAll(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments