| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,7 @@ | |||
| 1 | 1 | var assert = require("assert"); | |
| 2 | 2 | var path = require("path"); | |
| 3 | + var promisify = require("promisify-node"); | ||
| 4 | + var fse = promisify(require("fs-extra")); | ||
| 3 | 5 | ||
| 4 | 6 | describe("Repository", function() { | |
| 5 | 7 | var reposPath = path.resolve("test/repos/workdir/.git"); | |
@@ -41,6 +43,14 @@ describe("Repository", function() { | |||
| 41 | 43 | }); | |
| 42 | 44 | }); | |
| 43 | 45 | ||
| 46 | + it("can utilize repository init options", function() { | ||
| 47 | + return fse.remove(newRepo).then(function() { | ||
| 48 | + return Repository.initExt(newRepo, { | ||
| 49 | + flags: Repository.INIT_FLAG.MKPATH | ||
| 50 | + }); | ||
| 51 | + }); | ||
| 52 | + }); | ||
| 53 | + | ||
| 44 | 54 | it("can read the index", function() { | |
| 45 | 55 | return this.repository.index().then(function(index) { | |
| 46 | 56 | assert.ok(index instanceof Index); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments