| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2044,6 +2044,11 @@ | |||
| 2044 | 2044 | "functions": { | |
| 2045 | 2045 | "git_revert": { | |
| 2046 | 2046 | "isAsync": true, | |
| 2047 | + "args": { | ||
| 2048 | + "given_opts": { | ||
| 2049 | + "isOptional": true | ||
| 2050 | + } | ||
| 2051 | + }, | ||
| 2047 | 2052 | "return": { | |
| 2048 | 2053 | "isErrorCode": true | |
| 2049 | 2054 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,4 +60,11 @@ describe("Revert", function() { | |||
| 60 | 60 | assert.ok(_.endsWith(fileName, entries[0].path)); | |
| 61 | 61 | }); | |
| 62 | 62 | }); | |
| 63 | + | ||
| 64 | + it("RevertOptions is optional", function() { | ||
| 65 | + return Revert.revert(test.repository, test.firstCommit, null) | ||
| 66 | + .catch(function(error) { | ||
| 67 | + throw error; | ||
| 68 | + }); | ||
| 69 | + }); | ||
| 63 | 70 | }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments